[Bug fortran/93499] New: ICE in gfc_zero_size_array, at fortran/arith.c:1686
gscfq@t-online.de
gcc-bugzilla@gcc.gnu.org
Wed Jan 29 19:04:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93499
Bug ID: 93499
Summary: ICE in gfc_zero_size_array, at fortran/arith.c:1686
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: ---
Follow-up of pr92961 (ICEs down to at least r5) :
$ cat z1.f90
program p
integer :: a((0.)/0)
integer :: b = ubound(a,1)
end
$ cat z2.f90
program p
type t(n)
integer, len :: n
end type
type(t((0)/0)) :: x
end
$ gfortran-10-20200126 -c z1.f90
f951: internal compiler error: Segmentation fault
0xbac5cf crash_signal
../../gcc/toplev.c:328
0x61520b gfc_zero_size_array
../../gcc/fortran/arith.c:1686
0x61520b reduce_binary0
../../gcc/fortran/arith.c:1700
0x61520b eval_intrinsic_f3
../../gcc/fortran/arith.c:1749
0x64f9ca simplify_intrinsic_op
../../gcc/fortran/expr.c:1196
0x64f9ca gfc_simplify_expr(gfc_expr*, int)
../../gcc/fortran/expr.c:2215
0x63cd19 variable_decl
../../gcc/fortran/decl.c:2576
0x63cd19 gfc_match_data_decl()
../../gcc/fortran/decl.c:6120
0x6a0443 match_word
../../gcc/fortran/parse.c:65
0x6a0443 decode_statement
../../gcc/fortran/parse.c:376
0x6a1e8a next_free
../../gcc/fortran/parse.c:1279
0x6a1e8a next_statement
../../gcc/fortran/parse.c:1511
0x6a4234 parse_spec
../../gcc/fortran/parse.c:3738
0x6a62ac parse_progunit
../../gcc/fortran/parse.c:5851
0x6a7989 gfc_parse_file()
../../gcc/fortran/parse.c:6391
0x6f265f gfc_be_parse_file
../../gcc/fortran/f95-lang.c:210
More information about the Gcc-bugs
mailing list