http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55402
Bug #: 55402 Summary: Compiling large initializer lists never finishes Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: major Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: ke...@topsy.com An initializer list of tens of thousands of simple std::pair<...> causes GCC 4.7.2 to busily never return. Command line: kevin@ps027:~$ cat /proc/version Linux version 2.6.32-32-server (buildd@allspice) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #62-Ubuntu SMP Wed Apr 20 22:07:43 UTC 2011 kevin@ps027:~$ g++-4.7 --version g++-4.7 (Ubuntu/Linaro 4.7.2-2+ub1) 4.7.2 Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. kevin@ps027:~$ g++ -std=c++0x -save-temps hang.cc (never returns, compiler forever busy)