[Bug fortran/105138] [7,8,9,10,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
Mon May 16 19:51:50 GMT 2022


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

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

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

commit r9-10186-gf43db17894744827d93ddcea7952d4ecf1f83f30
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