------- Comment #12 from dominiq at lps dot ens dot fr 2009-03-30 22:01 ------- After the commit in comment #11, the following code gives an ICE with -fwhole-file:
[ibook-dhum] f90/bug% cat arr_fun.f90 function test(n) real, dimension(2) :: test integer :: n test = n ! print *, test return end function test program arr real, dimension(2) :: res res = test(2) print *, res end program [ibook-dhum] f90/bug% gfc -fwhole-file arr_fun.f90 arr_fun.f90: In function 'arr': arr_fun.f90:8: internal compiler error: in fold_convert, at fold-const.c:2547 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. It's a little bit late for further investigation, but the flag is probably the cause of 11 ICE in my tests. I may have also false positives or strange error messages. I'll try to sort my mess tomorrow morning. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26227