From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22321 invoked by alias); 22 Oct 2002 09:59:54 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 22300 invoked by uid 61); 22 Oct 2002 09:59:53 -0000 Date: Tue, 22 Oct 2002 02:59:00 -0000 Message-ID: <20021022095953.22299.qmail@sources.redhat.com> To: aroach@stoic.electriceyeball.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org From: nathan@gcc.gnu.org Reply-To: nathan@gcc.gnu.org, aroach@stoic.electriceyeball.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/3332: friend function declaration in a class in a namespace causes error X-SW-Source: 2002-10/txt/msg00811.txt.bz2 List-Id: 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