https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91942
Bug ID: 91942
Summary: ICE in match_vtag, at fortran/io.c:1485
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
With invalid code since 20181104 :
$ cat z1.f90
program p
integer :: i
backspace (iostat=i%kind)
endfile (iostat=i%kind)
flush (iostat=i%kind)
rewind (iostat=i%kind)
end
$ cat z2.f90
program p
character :: i
backspace (iostat=i%len)
endfile (iostat=i%len)
flush (iostat=i%len)
rewind (iostat=i%len)
end
$ gfortran-10-20190929 -c z1.f90
f951: internal compiler error: Segmentation fault
0xb5bd9f crash_signal
../../gcc/toplev.c:326
0x6447dd match_vtag
../../gcc/fortran/io.c:1485
0x6449c0 match_out_tag
../../gcc/fortran/io.c:1516
0x6449c0 match_file_element
../../gcc/fortran/io.c:2813
0x648a11 match_filepos
../../gcc/fortran/io.c:2846
0x674481 match_word
../../gcc/fortran/parse.c:65
0x678049 decode_statement
../../gcc/fortran/parse.c:448
0x6788ca next_free
../../gcc/fortran/parse.c:1251
0x6788ca next_statement
../../gcc/fortran/parse.c:1483
0x679eeb parse_spec
../../gcc/fortran/parse.c:3881
0x67ccdc parse_progunit
../../gcc/fortran/parse.c:5800
0x67e3a9 gfc_parse_file()
../../gcc/fortran/parse.c:6340
0x6c89af gfc_be_parse_file
../../gcc/fortran/f95-lang.c:204