https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100950
Bug ID: 100950 Summary: ICE in output_constructor_regular_field, at varasm.c:5514 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Affects versions down to at least r5 : $ cat z1.f90 program p character(8) :: x print *, [character(len(x(1:2))) :: 'a', 'b'] end $ gfortran-12-20210606 -c z1.f90 z1.f90:4:3: 4 | end | ^ internal compiler error: in output_constructor_regular_field, at varasm.c:5514 0xf3fdad output_constructor_regular_field ../../gcc/varasm.c:5514 0xf3fdad output_constructor ../../gcc/varasm.c:5820 0xf400ef output_constant ../../gcc/varasm.c:5172 0xf400ef assemble_variable_contents ../../gcc/varasm.c:2235 0xf47e8d assemble_variable(tree_node*, int, int, int) ../../gcc/varasm.c:2414 0xf4a18a varpool_node::assemble_decl() ../../gcc/varpool.c:595 0x8b0a8f output_in_order ../../gcc/cgraphunit.c:2135 0x8b0a8f symbol_table::compile() ../../gcc/cgraphunit.c:2353 0x8b33af symbol_table::compile() ../../gcc/cgraphunit.c:2540 0x8b33af symbol_table::finalize_compilation_unit() ../../gcc/cgraphunit.c:2537