This program generates an internal compiler error: Segmentation fault. #include <map> #include <string> #include <iostream>
using namespace std; int main() { map<string, string> m; m.insert({{"t", "t"}, {"y", "y"}}); return 0; } $ g++ -std=c++0x test.cpp test.cpp: In function 'int main()': test.cpp:11: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. This happens on a compiler built on cygwin from: svn://gcc.gnu.org/svn/gcc/tags/gcc_4_4_2_release and svn://gcc.gnu.org/svn/gcc/branches/gcc-4_4-bra...@152637 with ./configure --prefix=... --disable-sjlj-exceptions t...@crius ~/tmp $ /opt/gcc4.4.2/bin/gcc -v Using built-in specs. Target: i686-pc-cygwin Configured with: /home/Tom/svn/gcc4.4.2/configure --prefix=/opt/gcc4.4.2 --disab le-sjlj-exceptions Thread model: single gcc version 4.4.2 (GCC) $ /opt/gcc4.4/bin/gcc -v Using built-in specs. Target: i686-pc-cygwin Configured with: /home/Tom/svn/gcc/configure --prefix=/opt/gcc4.4 --disable-sjlj -exceptions Thread model: single gcc version 4.4.2 20091011 (prerelease) (GCC) -- Summary: initializer list internal compiler segfault Product: gcc Version: 4.4.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tom dot deseyn at gmail dot com GCC build triplet: i686-pc-cygwin GCC host triplet: i686-pc-cygwin GCC target triplet: i686-pc-cygwin http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41754