[Bug fortran/94578] Incorrect assignment of RESHAPE() result to a Fortran pointer

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Apr 25 10:29:53 GMT 2020


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

--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Thomas Kथà¤nig <tkoenig@gcc.gnu.org>:

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

commit r10-7960-gcf3f7b309ffdd888fdd85048ac9b4bcdc2713a45
Author: Thomas König <tkoenig@gcc.gnu.org>
Date:   Sat Apr 25 12:28:15 2020 +0200

    Fix PR 94578.

    Our intrinsics do not handle spans on their return values (yet),
    so this creates a temporary for subref array pointers.

    2020-04-25  Thomas Koenig  <tkoenig@gcc.gnu.org>

            PR fortran/94578
            * trans-expr.c (arrayfunc_assign_needs_temporary): If the
            LHS is a subref pointer, we also need a temporary.

    2020-04-25  Thomas Koenig  <tkoenig@gcc.gnu.org>

            PR fortran/94578
            * gfortran.dg/pointer_assign_14.f90: New test.
            * gfortran.dg/pointer_assign_15.f90: New test.


More information about the Gcc-bugs mailing list