[Bug fortran/105138] [7,8,9,10,11,F95] Bogus error when function name does not shadow an intrinsic when RESULT clause is used

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Apr 10 18:55:25 GMT 2022


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

--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:

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

commit r11-9806-gfdaa6de39a5da45dccd06c18dd355893b4cf9060
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Mon Apr 4 20:42:51 2022 +0200

    Fortran: a RECURSIVE procedure cannot be an INTRINSIC

    gcc/fortran/ChangeLog:

            PR fortran/105138
            * intrinsic.c (gfc_is_intrinsic): When a symbol refers to a
            RECURSIVE procedure, it cannot be an INTRINSIC.

    gcc/testsuite/ChangeLog:

            PR fortran/105138
            * gfortran.dg/recursive_reference_3.f90: New test.

    Co-authored-by: Steven G. Kargl <kargl@gcc.gnu.org>
    (cherry picked from commit d46685b04071a485b56de353d997a866bfc8caba)


More information about the Gcc-bugs mailing list