------- Comment #5 from Joost dot VandeVondele at pci dot uzh dot ch 2010-09-14 13:07 ------- A slight variation leads to an lto1 ICE:
declaring build eri as: 'extern void (*build_eri)(void);' leads to: > gcc -c -flto test_c.c ; gfortran -c -flto test.f90 ; rm all.a ; ar -r all.a > test_c.o test.o ; gfortran -fuse-linker-plugin -flto -O3 all.a ar: creating all.a lto1: internal compiler error: in lto_varpool_replace_node, at lto-symtab.c:292 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. lto-wrapper: gfortran returned 1 exit status /data03/vondele/binutils-2.20.1/build/bin/ld: fatal error: lto-wrapper failed collect2: ld returned 1 exit status -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45659