From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17525 invoked by alias); 19 Apr 2002 20:29: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 17485 invoked by uid 61); 19 Apr 2002 20:29:51 -0000 Date: Fri, 19 Apr 2002 13:29:00 -0000 Message-ID: <20020419202951.17484.qmail@sources.redhat.com> To: Bruce@EckelObjects.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org From: pme@gcc.gnu.org Reply-To: pme@gcc.gnu.org, Bruce@EckelObjects.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/4408: apparent namespace collision with global variable 'count' X-SW-Source: 2002-04/txt/msg00994.txt.bz2 List-Id: Synopsis: apparent namespace collision with global variable 'count' State-Changed-From-To: open->feedback State-Changed-By: pme State-Changed-When: Fri Apr 19 13:29:50 2002 State-Changed-Why: Perhaps I'm missing something, but I'm not certain what you think the bug is here. You cannot declare names already used in the library and expect the compiler to distinguish between them, once you pull all the library names into the same namespace as your own variable. The fix you list would therefore seem to be the only correct way to write the code, if you must use names that could collide with the standard library (count, cerr, cos, and so forth). http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4408