https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107216
Bug ID: 107216 Summary: ICE in reduce_binary_aa, at fortran/arith.cc:1427 Product: gcc Version: 13.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 : (valid examples) $ cat z1.f90 program p print *, [real :: 1, 2] * [real :: 1, (2)] end $ cat z2.f90 program p print *, [real :: 1, (2)] * [real :: 1, 2] end $ gfortran-13-20221009 -c z1.f90 f951: internal compiler error: Segmentation fault 0xf3feef crash_signal ../../gcc/toplev.cc:314 0x1fe6c0c splay_tree_foreach ../../libiberty/splay-tree.c:577 0x7d85d4 gfc_constructor_copy(splay_tree_s*) ../../gcc/fortran/constructor.cc:104 0x7bf0a7 reduce_binary_aa ../../gcc/fortran/arith.cc:1427 0x7bf0a7 reduce_binary ../../gcc/fortran/arith.cc:1478 0x7bf0ec reduce_binary_aa ../../gcc/fortran/arith.cc:1437 0x7bf0ec reduce_binary ../../gcc/fortran/arith.cc:1478 0x7bf5d2 eval_intrinsic ../../gcc/fortran/arith.cc:1654 0x83208c match_add_operand ../../gcc/fortran/matchexp.cc:392 0x83223c match_level_2 ../../gcc/fortran/matchexp.cc:480 0x832392 match_level_3 ../../gcc/fortran/matchexp.cc:551 0x832484 match_level_4 ../../gcc/fortran/matchexp.cc:599 0x832484 match_and_operand ../../gcc/fortran/matchexp.cc:693 0x832672 match_or_operand ../../gcc/fortran/matchexp.cc:722 0x832742 match_equiv_operand ../../gcc/fortran/matchexp.cc:765 0x832814 match_level_5 ../../gcc/fortran/matchexp.cc:811 0x831be1 gfc_match_expr(gfc_expr**) ../../gcc/fortran/matchexp.cc:870 0x8192d9 match_io_element ../../gcc/fortran/io.cc:3668 0x81bc0a match_io_list ../../gcc/fortran/io.cc:3716 0x81c00e match_io ../../gcc/fortran/io.cc:4394