[Bug fortran/95503] [9/10/11 Regression] ICE in gfc_is_simply_contiguous, at fortran/expr.c:5844

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Jun 14 12:40:54 GMT 2020


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

--- Comment #4 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:8c8102817739505fe47a949fc4ec38fe62518818

commit r10-8300-g8c8102817739505fe47a949fc4ec38fe62518818
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Thu Jun 11 15:48:56 2020 +0200

    PR fortran/95503 - Fix ICE in gfc_is_simply_contiguous, at
fortran/expr.c:5844

    The check for assigning a pointer that cannot be determined to be simply
    contiguous at compile time to a contiguous pointer does not need to be
    invoked if the lhs of the assignment is known to have conflicting
attributes.

    2020-06-11  Harald Anlauf  <anlauf@gmx.de>

    gcc/fortran/
            PR fortran/95503
            * expr.c (gfc_check_pointer_assign): Skip contiguity check of rhs
            of pointer assignment if lhs cannot be simply contiguous.

    gcc/testsuite/
            PR fortran/95503
            * gfortran.dg/pr95503.f90: New test.

    (cherry picked from commit 87af4f40453a9c84363bde5d9a58466de7fbee2e)


More information about the Gcc-bugs mailing list