https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93792
Bug ID: 93792
Summary: [10 Regression] ICE in gfc_code2string, at
fortran/misc.c:281
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: ---
Changed between 20190630 and 20190728 :
$ cat z1.f90
module m
type t(n)
integer, len :: n = z'1'
end type
end
program p
use m
type(t(:)), allocatable :: z
end
$ gfortran-10-20190630 -c z1.f90
$
$ gfortran-10-20200216 -c z1.f90
f951: internal compiler error: gfc_code2string(): Bad code
0x687ab9 gfc_report_diagnostic
../../gcc/fortran/error.c:782
0x6891da gfc_internal_error(char const*, ...)
../../gcc/fortran/error.c:1402
0x6c27b4 gfc_code2string(mstring const*, int)
../../gcc/fortran/misc.c:281
0x6c41cb mio_name
../../gcc/fortran/module.c:1758
0x6c8104 mio_name_bt
../../gcc/fortran/module.c:2156
0x6c8104 mio_typespec
../../gcc/fortran/module.c:2657
0x6c7900 mio_expr
../../gcc/fortran/module.c:3584
0x6c85ac mio_component
../../gcc/fortran/module.c:2934
0x6c953a mio_component_list
../../gcc/fortran/module.c:2955
0x6c953a mio_symbol
../../gcc/fortran/module.c:4414
0x6c999d write_symbol
../../gcc/fortran/module.c:5765
0x6c9b02 write_symbol0
../../gcc/fortran/module.c:5805
0x6c9a78 write_symbol0
../../gcc/fortran/module.c:5784
0x6cc7a4 write_module
../../gcc/fortran/module.c:6147
0x6cc7a4 dump_module
../../gcc/fortran/module.c:6277
0x6ccb6d gfc_dump_module(char const*, int)
../../gcc/fortran/module.c:6334
0x6e6a16 gfc_parse_file()
../../gcc/fortran/parse.c:6456
0x731b3f gfc_be_parse_file
../../gcc/fortran/f95-lang.c:210