This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3332: friend function declaration in a class in a namespace causes error
- From: nathan at gcc dot gnu dot org
- To: aroach at stoic dot electriceyeball dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 22 Oct 2002 09:59:53 -0000
- Subject: Re: c++/3332: friend function declaration in a class in a namespace causes error
- Reply-to: nathan at gcc dot gnu dot org, aroach at stoic dot electriceyeball dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
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