c++/3332: friend function declaration in a class in a namespace causes error

nathan@gcc.gnu.org nathan@gcc.gnu.org
Tue Oct 22 02:59:00 GMT 2002


Synopsis: friend function declaration in a class in a namespace causes error

State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Tue Oct 22 02:59:51 2002
State-Changed-Why:
    confirmed. I think this is well-formed. [7.3.1.2]/3 seems
    to be relevant. The question to answer is 'in the defintion of 
    N::A, what is the innermost enclosing namespace?'. Is it
    '::' - that being the one that is 'open', or is it '::N'
    - that being the one containing 'A'. It would be bizzare
    if the answer was '::'.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3332



More information about the Gcc-bugs mailing list