https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95978
Bug ID: 95978
Summary: [10/11 Regression] ICE in gfc_match_data, at
fortran/decl.c:731
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
This changed between 20200223 and 20200308 :
$ cat z1.f90
program p
type t
integer :: a
type(t), allocatable :: b
data c /t(1)/
end type
end
$ cat z2.f90
program p
type t
integer :: a
class(*), allocatable :: b
data c /t(1)/
end type
end
$ gfortran-10-20200223 -c z1.f90
z1.f90:5:19:
5 | data c /t(1)/
| 1
Error: Unexpected DATA statement at (1)
$ gfortran-11-20200628 -c z1.f90
f951: internal compiler error: Segmentation fault
0xbd215f crash_signal
../../gcc/toplev.c:328
0x6419e5 gfc_match_data()
../../gcc/fortran/decl.c:731
0x6aacb1 match_word
../../gcc/fortran/parse.c:65
0x6aed7e decode_statement
../../gcc/fortran/parse.c:469
0x6afaea next_free
../../gcc/fortran/parse.c:1280
0x6afaea next_statement
../../gcc/fortran/parse.c:1512
0x6b1574 parse_derived
../../gcc/fortran/parse.c:3343
0x6b1574 parse_spec
../../gcc/fortran/parse.c:3884
0x6b3f0c parse_progunit
../../gcc/fortran/parse.c:5852
0x6b55e9 gfc_parse_file()
../../gcc/fortran/parse.c:6393
0x7016ff gfc_be_parse_file
../../gcc/fortran/f95-lang.c:212