[Bug fortran/99043] Inconsistent behavior when calling rank(ptr) for assumed-rank null pointer

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Feb 12 15:59:10 GMT 2021


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

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

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

commit r10-9364-gf248468b309eba0608608c4d8bd75fd0f4580416
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Fri Feb 12 14:43:41 2021 +0100

    Fortran: Fix rank of assumed-rank array [PR99043]

    gcc/fortran/ChangeLog:

            PR fortran/99043
            * trans-expr.c (gfc_conv_procedure_call): Don't reset
            rank of assumed-rank array.

    gcc/testsuite/ChangeLog:

            PR fortran/99043
            * gfortran.dg/assumed_rank_20.f90: New test.

    (cherry picked from commit f699e0b16578cdc1be8b90691ef8b0964af32d2f)


More information about the Gcc-bugs mailing list