http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46701
Andreas Beckmann <gcc at abeckmann dot de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gcc at abeckmann dot de --- Comment #8 from Andreas Beckmann <gcc at abeckmann dot de> 2010-12-09 01:02:18 UTC --- Another small minimized testcase for this problem which fails on 4.6 and succeeds on 4.5: ===== 8< ===== struct A { int i ; } ; struct B { const A a ; constexpr B () : a ( A () ) { } } ; ===== >8 ===== $ g++-trunk -v -c -W -Wall -std=c++0x PR46701.min.ii Using built-in specs. COLLECT_GCC=/opt/software/x86_64/gcc-trunk/bin/g++-trunk COLLECT_LTO_WRAPPER=/opt/software/x86_64/gcc-trunk/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../gcc-trunk/configure --prefix=/opt/software/x86_64/gcc-trunk --program-suffix=-trunk --enable-languages=c,c++ --enable-checking Thread model: posix gcc version 4.6.0 20101207 (experimental) (GCC) COLLECT_GCC_OPTIONS='-v' '-c' '-Wextra' '-Wall' '-std=c++0x' '-shared-libgcc' '-mtune=generic' '-march=x86-64' /opt/software/x86_64/gcc-trunk/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/cc1plus -fpreprocessed PR46701.min.ii -quiet -dumpbase PR46701.min.ii -mtune=generic -march=x86-64 -auxbase PR46701.min -Wextra -Wall -std=c++0x -version -o /tmp/cc22qtoi.s GNU C++ (GCC) version 4.6.0 20101207 (experimental) (x86_64-unknown-linux-gnu) compiled by GNU C version 4.6.0 20101207 (experimental), GMP version 4.3.2, MPFR version 3.0.0-p3, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU C++ (GCC) version 4.6.0 20101207 (experimental) (x86_64-unknown-linux-gnu) compiled by GNU C version 4.6.0 20101207 (experimental), GMP version 4.3.2, MPFR version 3.0.0-p3, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: 58dd45b357216c1e9d23aab2b8f87581 PR46701.min.ii: In constructor ‘constexpr B::B()’: PR46701.min.ii:11:4: internal compiler error: in build_data_member_initialization, at cp/semantics.c:5489 Please submit a full bug report,