From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24611 invoked by alias); 28 Jun 2002 14:56:04 -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 24582 invoked by uid 71); 28 Jun 2002 14:56:02 -0000 Date: Fri, 28 Jun 2002 08:16:00 -0000 Message-ID: <20020628145602.24581.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "Dale Peakall" Subject: RE: c++/6664: Doesn't differentiate between functions and namespaces as symbols Reply-To: "Dale Peakall" X-SW-Source: 2002-06/txt/msg00697.txt.bz2 List-Id: The following reply was made to PR c++/6664; it has been noted by GNATS. From: "Dale Peakall" To: , , , , , Cc: Subject: RE: c++/6664: Doesn't differentiate between functions and namespaces as symbols Date: Fri, 28 Jun 2002 15:47:52 +0100 The example was: #include namespace log { static const int a_var = 0; } int main() {} Fails to compile, due to a conflict between the log function and namespace log. So the real problem here, is the manner in which the standard library imports functions into namespace std with a using directive. The standard C++ header should not specify functions at the global scope, that interfere with namespace definitions like the one above. Can we re-open this defect report as a standard library bug? > -----Original Message----- > From: lerdsuwa@gcc.gnu.org [mailto:lerdsuwa@gcc.gnu.org] > Sent: 05 June 2002 15:49 > To: dale@peakall.net; gcc-bugs@gcc.gnu.org; gcc-prs@gcc.gnu.org; > nobody@gcc.gnu.org > Subject: Re: c++/6664: Doesn't differentiate between functions and > namespaces as symbols > > > Synopsis: Doesn't differentiate between functions and > namespaces as symbols > > State-Changed-From-To: open->closed > State-Changed-By: lerdsuwa > State-Changed-When: Wed Jun 5 07:49:01 2002 > State-Changed-Why: > Not a bug. According to the standard section 7.3.1 p2, > The identifier in an original-namespace-definition > shall not have been previously defined in the declarative > region in which the original-namespace-definition appears. > > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail& > database=gcc&pr=6664 > > >