2013/3/8 xunxun: > Try > > gcc -c -m32 -O2 -flto lto_test.cpp -o lto_test.o > gcc -flto lto_test.o lto_int.o -olto_test.exe Hi, The same error: > g++ -m32 lto_int.o lto_test.o -flto -o lto_test.exe > lto1.exe: internal compiler error: cannot read LTO decls from lto_int.o -- Regards, niXman ___________________________________________________ Dual-target(32 & 64-bit) MinGW compilers for 32 and 64-bit Windows: http://sourceforge.net/projects/mingwbuilds/ ___________________________________________________ Another online IDE: http://liveworkspace.org/