]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: pure subroutine with pure procedure as dummy [PR106948]
authorHarald Anlauf <anlauf@gmx.de>
Tue, 15 Apr 2025 18:43:05 +0000 (20:43 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Wed, 16 Apr 2025 17:05:59 +0000 (19:05 +0200)
commit4e3060ee17e6eb8bab718d320199f713533dbbd6
treed3681c424951e3ba33662ff3272071a25672de74
parent518efed8cb7d003cd85477060b1fe926a2d7a53b
Fortran: pure subroutine with pure procedure as dummy [PR106948]

PR fortran/106948

gcc/fortran/ChangeLog:

* resolve.cc (gfc_pure_function): If a function has been resolved,
but esym is not yet set, look at its attributes to see whether it
is pure or elemental.

gcc/testsuite/ChangeLog:

* gfortran.dg/pure_formal_proc_4.f90: New test.
gcc/fortran/resolve.cc
gcc/testsuite/gfortran.dg/pure_formal_proc_4.f90 [new file with mode: 0644]