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