I was trying to reduce a test case and I hit another error in the process - [dranta:~/tests/gfortran] dir% gfortran -fdefault-integer-8 -o adini adini.f adini.f: In function 'MAIN__': adini.f:5: internal compiler error: in gfc_conv_string_tmp, at fortran/trans-expr.c:736 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. [dranta:~/tests/gfortran] dir% cat adini.f program main character*6 hed character*6 final data final /'stop' / if (hed(1).eq.final) stop stop end
(In reply to comment #0) > program main > character*6 hed > character*6 final > data final /'stop' / > if (hed(1).eq.final) stop if(hed(1:1).eq.final) stop > stop > end ftnchek saystroutmask:sgk[221] ftnchek a.f FTNCHEK Version 3.2 November 2002 File a.f: 0 syntax errors detected in file a.f Warning: Subprogram HED never defined Invoked in module MAIN line 6 file a.f (possibly it is an array which was not declared) With the above modification, the program compiles fine. Your original program does cause an ICE with -fdefault-integer-8, but it fails to link with a missing subroutine hed_ with it. troutmask:sgk[222] gfc41 -static -o z -fdefault-integer-8 a.f a.f: In function 'MAIN__': a.f:6: internal compiler error: in gfc_conv_string_tmp, at fortran/trans-expr.c:736 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. troutmask:sgk[223] gfc41 -static -o z a.f /usr/home/sgk/tmp/ccj4VZrU.o(.text+0x17): In function `MAIN__': : undefined reference to `hed_' collect2: ld returned 1 exit status
*** Bug 20986 has been marked as a duplicate of this bug. ***
Confirmed.
*** Bug 21415 has been marked as a duplicate of this bug. ***
*** Bug 23323 has been marked as a duplicate of this bug. ***
Aren't these fixed? Trying to compile these testcases with an up-to-date compiler, I don't get ICEs...
Fixed at least on the mainline.
*** Bug 24179 has been marked as a duplicate of this bug. ***