c++/4408: apparent namespace collision with global variable 'count'

pme@gcc.gnu.org pme@gcc.gnu.org
Fri Apr 19 13:34:00 GMT 2002


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



More information about the Gcc-bugs mailing list