[Bug target/54267] std::exception not catched when -O3 (-Os is fine, link static, FreeBSD 9.0-RELEASE-p3)
david.keller at litchis dot fr
gcc-bugzilla@gcc.gnu.org
Wed Aug 15 03:34:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54267
--- Comment #6 from David Keller <david.keller at litchis dot fr> 2012-08-15 03:34:07 UTC ---
Created attachment 28018
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28018
Here is the faulty code.
# Hum, without this variable, the program runs fine.
# Is it finding the wrong version of stdlib ?
setenv LD_LIBRARY_PATH
/lib:/usr/local/bin:/usr/local/lib:/usr/local/lib32:/usr/local/lib64
g++47 -O3 -Wl,-rpath,/usr/local/lib/gcc47 main.cpp && ./a.out
More information about the Gcc-bugs
mailing list