[Bug fortran/101101] New: ICE in gfc_build_array_type, at fortran/trans-types.c:1391
gscfq@t-online.de
gcc-bugzilla@gcc.gnu.org
Wed Jun 16 17:23:41 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101101
Bug ID: 101101
Summary: ICE in gfc_build_array_type, at
fortran/trans-types.c:1391
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
Test case in addition to pr99138, pr99254 and pr99266,
affects versions down to at least r5 :
$ cat z1.f90
subroutine s(x)
type t
end type
class(t) :: x
dimension :: x(:)
end
$ gfortran-12-20210613 -c z1.f90
z1.f90:1:12:
1 | subroutine s(x)
| 1
internal compiler error: Segmentation fault
0xc7bfff crash_signal
../../gcc/toplev.c:327
0x82022a gfc_build_array_type
../../gcc/fortran/trans-types.c:1391
0x82222e gfc_get_derived_type(gfc_symbol*, int)
../../gcc/fortran/trans-types.c:2791
0x8229d8 gfc_typenode_for_spec(gfc_typespec*, int)
../../gcc/fortran/trans-types.c:1170
0x822c2e gfc_sym_type(gfc_symbol*)
../../gcc/fortran/trans-types.c:2281
0x821174 gfc_get_function_type(gfc_symbol*, gfc_actual_arglist*, char const*)
../../gcc/fortran/trans-types.c:3126
0x7bac44 build_function_decl
../../gcc/fortran/trans-decl.c:2386
0x7c0836 gfc_create_function_decl(gfc_namespace*, bool)
../../gcc/fortran/trans-decl.c:3085
0x7c6e26 gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6787
0x74c876 translate_all_program_units
../../gcc/fortran/parse.c:6461
0x74c876 gfc_parse_file()
../../gcc/fortran/parse.c:6730
0x798bbf gfc_be_parse_file
../../gcc/fortran/f95-lang.c:212
More information about the Gcc-bugs
mailing list