[Bug fortran/93832] New: [8/9/10 Regression] ICE in gfc_convert_to_structure_constructor, at fortran/primary.c:3100
gscfq@t-online.de
gcc-bugzilla@gcc.gnu.org
Wed Feb 19 17:48:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93832
Bug ID: 93832
Summary: [8/9/10 Regression] ICE in
gfc_convert_to_structure_constructor, at
fortran/primary.c:3100
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
Started to ICE with gfortran-8 before 20180525 :
$ cat z1.f90
program p
type t
character :: a
integer :: b
integer :: c(t(1))
end type
type(t) :: z = t('a', 2, [3])
end
$ gfortran-7 -c z1.f90 # error message doubled
z1.f90:5:19:
integer :: c(t(1))
1
Error: No initializer for component 'b' given in the structure constructor at
(1)!
z1.f90:5:19:
integer :: c(t(1))
1
Error: No initializer for component 'b' given in the structure constructor at
(1)!
$ gfortran-10-20200216 -c z1.f90
f951: internal compiler error: Segmentation fault
0xbae76f crash_signal
../../gcc/toplev.c:328
0x6aea05 gfc_convert_to_structure_constructor(gfc_expr*, gfc_symbol*,
gfc_expr**, gfc_actual_arglist**, bool)
../../gcc/fortran/primary.c:3100
0x6c27a1 resolve_generic_f
../../gcc/fortran/resolve.c:2723
0x6c27a1 resolve_function
../../gcc/fortran/resolve.c:3230
0x6c27a1 gfc_resolve_expr(gfc_expr*)
../../gcc/fortran/resolve.c:7000
0x61a724 resolve_array_bound
../../gcc/fortran/array.c:378
0x61b396 gfc_resolve_array_spec(gfc_array_spec*, int)
../../gcc/fortran/array.c:422
0x6be945 resolve_component
../../gcc/fortran/resolve.c:14576
0x6bf4c2 resolve_fl_derived0
../../gcc/fortran/resolve.c:14695
0x6bfb07 resolve_fl_derived0
../../gcc/fortran/resolve.c:14782
0x6bfb07 resolve_fl_derived
../../gcc/fortran/resolve.c:14824
0x6bbf6f resolve_symbol
../../gcc/fortran/resolve.c:15198
0x6df9f2 do_traverse_symtree
../../gcc/fortran/symbol.c:4147
0x6b7754 resolve_types
../../gcc/fortran/resolve.c:17122
0x6bb50c gfc_resolve(gfc_namespace*)
../../gcc/fortran/resolve.c:17237
0x6a987c resolve_all_program_units
../../gcc/fortran/parse.c:6245
0x6a987c gfc_parse_file()
../../gcc/fortran/parse.c:6492
0x6f44ff gfc_be_parse_file
../../gcc/fortran/f95-lang.c:210
More information about the Gcc-bugs
mailing list