http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59543
--- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- Created attachment 31527 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31527&action=edit testcase Here's a small testcase: % cat check.sh g++ -g -fprofile-use -fPIC -flto -fno-exceptions -O2 -std=c++11 -c uniset.ii g++ -fPIC -flto -fno-exceptions -O2 -std=c++11 -c unistr.ii g++ -fPIC -flto -fno-exceptions -O2 -std=c++11 -c unorm.ii gcc -O3 -c -fPIC unorm_it.i g++ -flto -O2 uniset.o unistr.o unorm_it.o unorm.o % ./check.sh In member function ‘extractBetween’: lto1: fatal error: Cgraph edge statement index out of range 25 < 50 compilation terminated.