]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: a RECURSIVE procedure cannot be an INTRINSIC
authorHarald Anlauf <anlauf@gmx.de>
Mon, 4 Apr 2022 18:42:51 +0000 (20:42 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Mon, 16 May 2022 19:50:59 +0000 (21:50 +0200)
commitf43db17894744827d93ddcea7952d4ecf1f83f30
tree4e4749f2d6fb65037b2b9572a89aee1fdfcacde2
parent882739c259fa2a0dcce58b501c140e3ef0bf1e5d
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)
gcc/fortran/intrinsic.c
gcc/testsuite/gfortran.dg/recursive_reference_3.f90 [new file with mode: 0644]