http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48132
Summary: Internal compiler error on array of std::complex with -std=cxx0x Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: martin.kronbich...@it.uu.se gcc 4.6.0 weekly snapshot 20110312 $ g++ -v Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6.0/lto-wrapper Target: x86_64-linux-gnu Configured with: ../configure --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --without-included-gettext --enable-threads=posix --program-suffix=-4.6 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i486 --with-tune=core2 --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-cpu=core2 Thread model: posix gcc version 4.6.0 20110312 (experimental) (GCC) With the following code: #include <complex> void test () { std::complex<double> array[] = { std::complex<double>(0,1) }; } I get: $ g++ -std=c++0x -c complex_test.cc -o complex_test.o complex_test.cc: In function ‘void test()’: complex_test.cc:4:62: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. The code compiles fine without -std=c++0x, and it is also fine with gcc 4.5.2.