[Bug fortran/96896] Bogus 'Different ranks in pointer assignment' with 'array-variable = scalar' if LHS is a function

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Sep 7 10:30:19 GMT 2020


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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tobias Burnus <burnus@gcc.gnu.org>:

https://gcc.gnu.org/g:2b0df0a6ac79b34f5fac4f3d456e8e14db220e4a

commit r11-3029-g2b0df0a6ac79b34f5fac4f3d456e8e14db220e4a
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Mon Sep 7 12:29:05 2020 +0200

    Fortran: Fixes for pointer function call as variable (PR96896)

    gcc/fortran/ChangeLog:

            PR fortran/96896
            * resolve.c (get_temp_from_expr): Also reset proc_pointer +
            use_assoc attribute.
            (resolve_ptr_fcn_assign): Use information from the LHS.

    gcc/testsuite/ChangeLog:

            PR fortran/96896
            * gfortran.dg/ptr_func_assign_4.f08: Update dg-error.
            * gfortran.dg/ptr-func-3.f90: New test.


More information about the Gcc-bugs mailing list