https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92753
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anlauf at gcc dot gnu.org
--- Comment #3 from anlauf at gcc dot gnu.org ---
A minor variation of the example in comment#0 shows a slightly different ICE:
module m
type t
character(3) :: c
end type t
type(t), parameter :: x = t('abc')
end
program p
use m
print *, x%c%len
end
pr92753-z1.f90:9:0:
9 | print *, x%c%len
|
internal compiler error: Segmentation fault
0xd45e5f crash_signal
../../trunk/gcc/toplev.c:328
0x7871c0 gfc_conv_structure(gfc_se*, gfc_expr*, int)
../../trunk/gcc/fortran/trans-expr.c:8506
0x77d6ac gfc_conv_expr(gfc_se*, gfc_expr*)
../../trunk/gcc/fortran/trans-expr.c:8677
0x787525 gfc_conv_expr_reference(gfc_se*, gfc_expr*, bool)
../../trunk/gcc/fortran/trans-expr.c:8802
0x7b2457 gfc_trans_transfer(gfc_code*)
../../trunk/gcc/fortran/trans-io.c:2582
0x735c97 trans_code
../../trunk/gcc/fortran/trans.c:2084
0x7aef82 build_dt
../../trunk/gcc/fortran/trans-io.c:2026
0x735cb7 trans_code
../../trunk/gcc/fortran/trans.c:2056
0x76d14d gfc_generate_function_code(gfc_namespace*)
../../trunk/gcc/fortran/trans-decl.c:6801
0x6e70a6 translate_all_program_units
../../trunk/gcc/fortran/parse.c:6302
0x6e70a6 gfc_parse_file()
../../trunk/gcc/fortran/parse.c:6541
0x7320af gfc_be_parse_file
../../trunk/gcc/fortran/f95-lang.c:210