Fortran - ICE in inline_matmul_assign
authorHarald Anlauf <anlauf@gmx.de>
Fri, 4 Jun 2021 17:23:48 +0000 (19:23 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Fri, 4 Jun 2021 17:23:48 +0000 (19:23 +0200)
commitbee8619ad0ac3bd27b7c8dc5819b83a5e8e147a0
tree7a774e4857347f6c68b0ef4e8b81a22dd4c0c3b0
parent5328cad24f7460a39b2def12bb9b62be36c92a54
Fortran - ICE in inline_matmul_assign

Restrict inlining of matmul to those cases where assignment to the
result array does not need special treatment.

gcc/fortran/ChangeLog:

PR fortran/99839
* frontend-passes.c (inline_matmul_assign): Do not inline matmul
if the assignment to the resulting array if it is not of canonical
type (real/integer/complex/logical).

gcc/testsuite/ChangeLog:

PR fortran/99839
* gfortran.dg/inline_matmul_25.f90: New test.
gcc/fortran/frontend-passes.c
gcc/testsuite/gfortran.dg/inline_matmul_25.f90 [new file with mode: 0644]