http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49394
Summary: [4.7 Regression] libstdc++-v3/testsuite/30_threads/lock_guard/cons/1.cc FAILs with -fipa-pta -fnon-call-exceptions Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassig...@gcc.gnu.org ReportedBy: zso...@seznam.cz CC: rgue...@gcc.gnu.org Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 24511 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24511 reduced testcase (from libstdc++-v3/testsuite/30_threads/lock_guard/cons/1.cc) Output: $ g++ -O -fipa-pta -fnon-call-exceptions testcase.C $ gdb ./a.out (gdb) r Starting program: /home/smatz/gcc-bug/951/a.out terminate called after throwing an instance of 'int' Program received signal SIGABRT, Aborted. 0x00007ffff72e1a05 in raise () from /lib64/libc.so.6 (gdb) bt #0 0x00007ffff72e1a05 in raise () from /lib64/libc.so.6 #1 0x00007ffff72e308f in abort () from /lib64/libc.so.6 #2 0x00007ffff7b95fd5 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/libstdc++.so.6 #3 0x00007ffff7b94406 in ?? () from /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/libstdc++.so.6 #4 0x00007ffff7b94433 in std::terminate() () from /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/libstdc++.so.6 #5 0x00007ffff7b9451e in __cxa_throw () from /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/libstdc++.so.6 #6 0x00000000004007bf in ~Mutex () at testcase.C:7 #7 main () at testcase.C:36 Tested revisions: r174979 - fail r173150 - OK 4.6.0 - OK