https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99817
Bug ID: 99817
Summary: [10/11 Regression] ICE in create_function_arglist, at
fortran/trans-decl.c:2838 (etc.)
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: ---
Changed between 20210314 and 20210328 :
$ cat z1.f90
subroutine s1 (x)
character(*) :: x(*)[*]
end
$ cat z2.f90
subroutine s2 (x)
character(*), dimension(*), codimension[*] :: x
integer :: i
i = len(x)
end
$ gfortran-11-20210314 -c z1.f90 -fcoarray=lib
$ gfortran-11-20210314 -c z1.f90 -fcoarray=single
$ gfortran-11-20210328 -c z1.f90 -fcoarray=single
$
$ gfortran-11-20210328 -c z1.f90 -fcoarray=lib
z1.f90:1:13:
1 | subroutine s1 (x)
| 1
internal compiler error: Segmentation fault
0xc09d4f crash_signal
../../gcc/toplev.c:327
0x754ed9 create_function_arglist
../../gcc/fortran/trans-decl.c:2838
0x75a153 gfc_create_function_decl(gfc_namespace*, bool)
../../gcc/fortran/trans-decl.c:3089
0x7603b6 gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6778
0x6e5de6 translate_all_program_units
../../gcc/fortran/parse.c:6351
0x6e5de6 gfc_parse_file()
../../gcc/fortran/parse.c:6620
0x7320ef gfc_be_parse_file
../../gcc/fortran/f95-lang.c:212