http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54267
--- Comment #7 from David Keller <david.keller at litchis dot fr> 2012-08-15 03:39:56 UTC --- It might be related to a wrong stdlib selection on my side: 1) Without setenv LD_LIBRARY_PATH /lib:/usr/local/bin:/usr/local/lib:/usr/local/lib32:/usr/local/lib64, the program runs fine. 2) It is linked with -rpath,/usr/local/lib/gcc48 (and rpath should have priority over LD_LIBRARy_PATH) *) Why optimization level has an influence on all this ?