------- Additional Comments From kargl at gcc dot gnu dot org 2005-04-12 16:09
-------
(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
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20971