The following testcase segfaults on 3.4.4 and 3.4.0, but runs to completion on 3.2.3.
Note this test won't even compile on mainline, so I don't know if the same problem exists there. See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19878 -------------------------------------------------------- //test.c struct S { char k; }; char const volatile S::* const p01 = &S::k; int main(void) { return 0; } -------------------------------------------------------- /opt/gcc-nightly/3.4-20050211/bin/g++ -o test test.c ./test Segmentation fault ------------------------------------------------ $ gdb ./test (gdb) run Starting program: /home/jgrimm/tmp/13930/test Program received signal SIGSEGV, Segmentation fault. 0x10000474 in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at g.c:5 5 char const volatile S::* const p01 = &S::k; ----------------------------------------------- $ /opt/gcc-nightly/3.4-20050211/bin/g++ -v Reading specs from /home/gcc-nightly/3.4-20050211/bin/../lib/gcc/powerpc64-linux/3.4.4/specs Configured with: /home/gccbuild/gcc_3.4_anoncvs/gcc/configure --prefix=/opt/gcc-nightly/3.4-20050211 --build=powerpc64-linux --host=powerpc64-linux --target=powerpc64-linux --with-cpu=default32 --with-as=/opt/gcc-nightly/binutils/bin/as --with-ld=/opt/gcc-nightly/binutils/bin/ld --enable-threads=posix --enable-shared --enable-__cxa_atexit --enable-languages=c,c++,f77,java,objc Thread model: posix gcc version 3.4.4 20050211 (prerelease) -- Summary: Segmentation fault in __static_initialization_and_destruction_0 Product: gcc Version: 3.4.4 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jgrimm2 at us dot ibm dot com CC: gcc-bugs at gcc dot gnu dot org GCC host triplet: ppc64-unknown-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19916