[Bug libobjc/51749] Including <algorithm> pollute global namespace

nospam.kotarou.dono at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Jan 17 08:47:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51749

nospam.kotarou.dono at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libstdc++                   |libobjc

--- Comment #7 from nospam.kotarou.dono at gmail dot com 2012-01-17 08:19:32 UTC ---
I also noticed that quite a few of the c* files dump their entire C counterpart
in the global namespace. Is it supposed to do that according to the standard?
If not, it sounds like something that can fixed just by wrapping the #include
in a namespace std block.

I noticed:
cstdio dumps entire stdio.h
cstdlib dumps entire stdlib.h
cmath dumps entire math.h
cctype dumps entire ctype.h



More information about the Gcc-bugs mailing list