This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]