This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/51749] Including <algorithm> pollute global namespace
- From: "nospam.kotarou.dono at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 08 Jan 2012 12:14:56 +0000
- Subject: [Bug libstdc++/51749] Including <algorithm> pollute global namespace
- Auto-submitted: auto-generated
- References: <bug-51749-4@http.gcc.gnu.org/bugzilla/>
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?