https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99111
Bug ID: 99111
Summary: [10/11 Regression] ICE in gfc_conv_expr_descriptor, at
fortran/trans-array.c:7336
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 20191215 and 20200105 :
$ cat z1.f90
program p
type t
integer :: a(1)
end type
type(t), parameter :: x(2) = t([1])
print x
end
$ gfortran-10-20191215 -c z1.f90
z1.f90:5:31:
5 | type(t), parameter :: x(2) = t([1])
| 1
Error: FORMAT tag at (1) must be of type default-kind CHARACTER or of INTEGER
$ gfortran-11-20210214 -c z1.f90
z1.f90:6:8:
6 | print x
| 1
Warning: Legacy Extension: Non-character in FORMAT tag at (1)
z1.f90:6:10:
6 | print x
| 1
internal compiler error: in gfc_conv_expr_descriptor, at
fortran/trans-array.c:7336
0x74995a gfc_conv_expr_descriptor(gfc_se*, gfc_expr*)
../../gcc/fortran/trans-array.c:7336
0x74f343 gfc_conv_array_parameter(gfc_se*, gfc_expr*, bool, gfc_symbol const*,
char const*, tree_node**)
../../gcc/fortran/trans-array.c:8149
0x793f1c gfc_convert_array_to_string
../../gcc/fortran/trans-io.c:788
0x793f1c set_string
../../gcc/fortran/trans-io.c:848
0x795eae build_dt
../../gcc/fortran/trans-io.c:1941
0x73a077 trans_code
../../gcc/fortran/trans.c:2114
0x760554 gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6880
0x6e6e86 translate_all_program_units
../../gcc/fortran/parse.c:6351
0x6e6e86 gfc_parse_file()
../../gcc/fortran/parse.c:6620
0x7330ff gfc_be_parse_file
../../gcc/fortran/f95-lang.c:212