Commit Graph

2 Commits

Author SHA1 Message Date
William S Fulton e511df0026 Further fixes for handling friends in deeply nested mixes of templates and classes
The appropriate namespace for friends declared in a class/template were
not always being correctly determined when %template is used in nested
hierarchies. Further improvements to previous commit.
2024-09-04 08:24:00 +01:00
William S Fulton 4564a60915 Fix duplicate friend wrappers for friend declarations in nested classes.
We need to modify the scope that friends are declared in to the
namespace that of the outermost class is declared in. The friend is
not declared within a class, it must be a namespace. Add missing
implementations of the "prev_symtab" so that it is set in every
class and then use this for picking up the appropriate scope for
declaring the friend in.

Closes #2845
2024-09-04 08:24:00 +01:00