[Bug libstdc++/51749] Including <algorithm> pollute global namespace
nospam.kotarou.dono at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sun Jan 8 12:15:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51749
--- Comment #5 from nospam.kotarou.dono at gmail dot com 2012-01-08 12:14:56 UTC ---
Also found another similar problem while compiling on Windows with mingw-w64.
Including <chrono> also pollutes the global namespace.
text.cpp:
#include <chrono>
timeval t; // Shouldn't compile
int main() { return 0; }
Compiles with: g++ -std=gnu++11 test.cpp -o test
GCC version is exactly the same as the one in my first comment.
PS. Should I report this specific problem to mingw-w64 instead?
More information about the Gcc-bugs
mailing list