[Bug tree-optimization/30252] [4.2 regression] miscompilation of sigc++-2.0 based code with -fstrict-aliasing
pluto at agmk dot net
gcc-bugzilla@gcc.gnu.org
Mon Apr 30 14:16:00 GMT 2007
------- Comment #10 from pluto at agmk dot net 2007-04-30 15:16 -------
i can reproduce testcase4 on 4.2.0-20070425@x86-64.
$ g++ 30252.cpp -O1 -fstrict-aliasing -g3 && ./a.out
zsh: segmentation fault ./a.out
(gdb) bt
#0 0x00002adee263dbc0 in _rtld_local_ro () from /lib64/ld-linux-x86-64.so.2
#1 0x0000000000400654 in sigc::internal::slot_call0<sigc::bind_functor<-1,
sigc::pointer_functor1<void*, void*>, long*> >::call_it (
rep=0x601010) at 30252.cpp:73
#2 0x000000000040062b in main () at 30252.cpp:238
it works with -O1 -fno-strict-aliasing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30252
More information about the Gcc-bugs
mailing list