https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91729
Bug ID: 91729
Summary: [10 Regression] ICE in gfc_match_select_rank, at
fortran/match.c:6586
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: ---
Started recently, between 20190825 and 20190901 :
$ cat z1.f90
subroutine s(x)
integer :: x(..)
select rank (-x)
end select
end
$ cat z2.f90
select rank (1)
$ gfortran-10-20190825 -c z1.f90
z1.f90:3:3:
3 | select rank (-x)
| 1
Error: Unclassifiable statement at (1)
z1.f90:4:6:
4 | end select
| 1
Error: Expecting END SUBROUTINE statement at (1)
$ gfortran-10-20190908 -c z1.f90
f951: internal compiler error: Segmentation fault
0xb3e7ff crash_signal
../../gcc/toplev.c:326
0x6529ce gfc_match_select_rank()
../../gcc/fortran/match.c:6586
0x66feee match_word
../../gcc/fortran/parse.c:65
0x66feee decode_statement
../../gcc/fortran/parse.c:429
0x6716fa next_free
../../gcc/fortran/parse.c:1251
0x6716fa next_statement
../../gcc/fortran/parse.c:1483
0x672d1b parse_spec
../../gcc/fortran/parse.c:3881
0x675b0c parse_progunit
../../gcc/fortran/parse.c:5800
0x67757c gfc_parse_file()
../../gcc/fortran/parse.c:6347
0x6c181f gfc_be_parse_file
../../gcc/fortran/f95-lang.c:204