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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>:

https://gcc.gnu.org/g:70e24c9682ddbcade0301665bccd8e7f928d0082

commit r12-6596-g70e24c9682ddbcade0301665bccd8e7f928d0082
Author: Harald Anlauf <anl...@gmx.de>
Date:   Fri Jan 14 21:48:15 2022 +0100

    Fortran: always reject alternate return specifier as argument of intrinsics

    The intrinsics MOVE_ALLOC, C_F_POINTER, and C_F_PROCPOINTER require
    deferred checks of part of their actual argument types which may be of
    "any" type.  This however excludes alternate return specifiers which
    therefore must be unconditionally rejected for all standard intrinsics.

    gcc/fortran/ChangeLog:

            PR fortran/99256
            * intrinsic.c: Do not check formal argument type when checking
            arguments of intrinsics for alternate return specifiers.

    gcc/testsuite/ChangeLog:

            PR fortran/99256
            * gfortran.dg/altreturn_11.f90: New test.

Reply via email to