https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82994
Bug ID: 82994
Summary: ICE in gfc_match_deallocate, at fortran/match.c:4478
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
With invalid code (no pointer/allocatable attribute, nor allocated) :
$ cat z1.f90
program p
type t
end type
class(t) :: x
deallocate (x)
end
$ gfortran-8-20171112 -c z1.f90
f951: internal compiler error: Segmentation fault
0xb61c7f crash_signal
../../gcc/toplev.c:325
0x6c33e3 gfc_match_deallocate()
../../gcc/fortran/match.c:4478
0x6dfe69 match_word_omp_simd
../../gcc/fortran/parse.c:93
0x6e48af match_word
../../gcc/fortran/parse.c:466
0x6e48af decode_statement
../../gcc/fortran/parse.c:466
0x6e5354 next_free
../../gcc/fortran/parse.c:1225
0x6e5354 next_statement
../../gcc/fortran/parse.c:1457
0x6e6c3c parse_spec
../../gcc/fortran/parse.c:3834
0x6e9133 parse_progunit
../../gcc/fortran/parse.c:5637
0x6ea6f4 gfc_parse_file()
../../gcc/fortran/parse.c:6177
0x72f13f gfc_be_parse_file
../../gcc/fortran/f95-lang.c:204