https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91553
Bug ID: 91553
Summary: ICE in gfc_real2complex, at fortran/arith.c:2208
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: ---
Affects versions down to at least gcc-4.9 :
$ cat z1.f90
program p
print *, (1.0, 2.0) * [real :: (3.0 + 4.0)]
end
$ gfortran-10-20190825 -c z1.f90
f951: internal compiler error: Segmentation fault
0xb3acef crash_signal
../../gcc/toplev.c:326
0x5e8cc1 gfc_real2complex(gfc_expr*, int)
../../gcc/fortran/arith.c:2208
0x6a9999 gfc_convert_constant(gfc_expr*, bt, int)
../../gcc/fortran/simplify.c:8479
0x62ee5b do_simplify
../../gcc/fortran/intrinsic.c:4530
0x63a00a gfc_convert_type_warn(gfc_expr*, gfc_typespec*, int, int)
../../gcc/fortran/intrinsic.c:5213
0x5e6343 eval_intrinsic
../../gcc/fortran/arith.c:1563
0x652bec match_add_operand
../../gcc/fortran/matchexp.c:392
0x652d9c match_level_2
../../gcc/fortran/matchexp.c:480
0x652ef2 match_level_3
../../gcc/fortran/matchexp.c:551
0x652fe4 match_level_4
../../gcc/fortran/matchexp.c:599
0x652fe4 match_and_operand
../../gcc/fortran/matchexp.c:693
0x6531d2 match_or_operand
../../gcc/fortran/matchexp.c:722
0x6532a2 match_equiv_operand
../../gcc/fortran/matchexp.c:765
0x653374 match_level_5
../../gcc/fortran/matchexp.c:811
0x652751 gfc_match_expr(gfc_expr**)
../../gcc/fortran/matchexp.c:870
0x63a9e3 match_io_element
../../gcc/fortran/io.c:3674
0x63d305 match_io_list
../../gcc/fortran/io.c:3713
0x63d714 match_io
../../gcc/fortran/io.c:4412
0x64159a gfc_match_print()
../../gcc/fortran/io.c:4469
0x66bcd1 match_word
../../gcc/fortran/parse.c:65