http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50233
Bug #: 50233 Summary: Internal compiler error: in build_value_init_noctor, at cp/init.c:336 Classification: Unclassified Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: naddi...@gmail.com Created attachment 25135 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25135 Testcase I think shared pointers inside a union break when initialized in a constructor list. See attached test case. $ /usr/lib/gcc-snapshot/bin/g++ -std=c++0x -o test.bin test.cpp test.cpp: In constructor 'Test::Test()': test.cpp:15:16: internal compiler error: in build_value_init_noctor, at cp/init.c:336 $ /usr/lib/gcc-snapshot/bin/g++ -v Using built-in specs. COLLECT_GCC=/usr/lib/gcc-snapshot/bin/g++ COLLECT_LTO_WRAPPER=/usr/lib/gcc-snapshot/libexec/gcc/x86_64-linux-gnu/4.6.0/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 20110308-1' --with-bugurl=file:///usr/share/doc/gcc-snapshot/README.Bugs --enable-languages=c,ada,c++,fortran,objc,obj-c++,go --prefix=/usr/lib/gcc-snapshot --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --disable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=yes --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.6.0 20110308 (experimental) [trunk revision 170786] (Ubuntu/Linaro 20110308-1)