[Bug fortran/99839] [9/10/11/12 Regression] ICE in inline_matmul_assign, at fortran/frontend-passes.c:4234

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jun 4 17:54:44 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99839

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:

https://gcc.gnu.org/g:df45c5b83447a06e6b15c729807a17409c39ddff

commit r10-9890-gdf45c5b83447a06e6b15c729807a17409c39ddff
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Fri Jun 4 19:23:48 2021 +0200

    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.

    (cherry picked from commit bee8619ad0ac3bd27b7c8dc5819b83a5e8e147a0)


More information about the Gcc-bugs mailing list