https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93340
Bug ID: 93340 Summary: [8/9/10 Regression] ICE in check_constant_initializer, at fortran/trans-decl.c:5450 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Since gfortran-7 : $ cat z1.f90 program p character c(2) /'a', 'b'(1:1)/ character d(2) /'a', 'bc'(1:1)/ end $ gfortran-6 -c z1.f90 z1.f90:3:25: character d(2) /'a', 'bc'(1:1)/ 1 Warning: Initialization string at (1) was truncated to fit the variable (1/2) $ gfortran-10-20200119 -c z1.f90 z1.f90:4:0: 4 | end | internal compiler error: Segmentation fault 0xbaaaff crash_signal ../../gcc/toplev.c:328 0x710bce check_constant_initializer ../../gcc/fortran/trans-decl.c:5450 0x7114b4 gfc_emit_parameter_debug_info ../../gcc/fortran/trans-decl.c:5533 0x6db932 do_traverse_symtree ../../gcc/fortran/symbol.c:4165 0x71d15a gfc_generate_function_code(gfc_namespace*) ../../gcc/fortran/trans-decl.c:6989 0x6a5e06 translate_all_program_units ../../gcc/fortran/parse.c:6302 0x6a5e06 gfc_parse_file() ../../gcc/fortran/parse.c:6541 0x6f044f gfc_be_parse_file ../../gcc/fortran/f95-lang.c:210