https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69486
Bug ID: 69486 Summary: Strange behaviour of bitset and c++11 Product: gcc Version: 4.9.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: boris at dolgov dot name Target Milestone: --- Hello! When I try to compile the following program #include <bitset> std::bitset<2147483648> b; int main() {} cc1plus tries to eat all available memory and hangs. Compilation command is g++ -o test test.cpp -std=c++11 When I use -std=c++98, everything works fine.