https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99840
Bug ID: 99840 Summary: [9/10/11 Regression] ICE in gfc_simplify_matmul, at fortran/simplify.c:4777 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Started with r8, compiles with r7 : $ cat z1.f90 program p integer, parameter :: x(0,0) = 0 integer :: y(0,0) y = matmul(x, transpose(x)) end $ gfortran-7 -c z1.f90 $ $ gfortran-11-20210328 -c z1.f90 f951: internal compiler error: Segmentation fault 0xc09d4f crash_signal ../../gcc/toplev.c:327 0x716f87 gfc_simplify_matmul(gfc_expr*, gfc_expr*) ../../gcc/fortran/simplify.c:4777 0x69b9d3 do_simplify ../../gcc/fortran/intrinsic.c:4664 0x6a63fa gfc_intrinsic_func_interface(gfc_expr*, int) ../../gcc/fortran/intrinsic.c:5050 0x6f5699 resolve_unknown_f ../../gcc/fortran/resolve.c:2926 0x6f5699 resolve_function ../../gcc/fortran/resolve.c:3270 0x6f5699 gfc_resolve_expr(gfc_expr*) ../../gcc/fortran/resolve.c:7105 0x6fbb24 gfc_resolve_expr(gfc_expr*) ../../gcc/fortran/resolve.c:11728 0x6fbb24 gfc_resolve_code(gfc_code*, gfc_namespace*) ../../gcc/fortran/resolve.c:11824 0x6fd0b7 resolve_codes ../../gcc/fortran/resolve.c:17395 0x6fd17e gfc_resolve(gfc_namespace*) ../../gcc/fortran/resolve.c:17430 0x6e56e4 resolve_all_program_units ../../gcc/fortran/parse.c:6290 0x6e56e4 gfc_parse_file() ../../gcc/fortran/parse.c:6542 0x7320ef gfc_be_parse_file ../../gcc/fortran/f95-lang.c:212