https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93600
Bug ID: 93600
Summary: [10 Regression] ICE in gfc_match_assignment, at
fortran/match.c:1366/1340
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: ---
Changed between 20191215 and 20200105 :
$ cat z1.f90
program p
character(1), parameter :: c(0) = 'a'
c%len = 'a'
end
$ gfortran-10-20191215 -c z1.f90
z1.f90:3:14:
3 | c%len = 'a'
| 1
Error: Assignment to a constant expression at (1)
$ gfortran-10-20200202 -c z1.f90
f951: internal compiler error: Segmentation fault
0xbac59f crash_signal
../../gcc/toplev.c:328
0x67c9f4 gfc_match_assignment()
../../gcc/fortran/match.c:1366
0x6a06e0 match_word
../../gcc/fortran/parse.c:65
0x6a06e0 decode_statement
../../gcc/fortran/parse.c:361
0x6a21da next_free
../../gcc/fortran/parse.c:1279
0x6a21da next_statement
../../gcc/fortran/parse.c:1511
0x6a382b parse_spec
../../gcc/fortran/parse.c:3922
0x6a65fc parse_progunit
../../gcc/fortran/parse.c:5851
0x6a7cd9 gfc_parse_file()
../../gcc/fortran/parse.c:6392
0x6f295f gfc_be_parse_file
../../gcc/fortran/f95-lang.c:210