]> 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, 30 Apr 2025 20:57:10 +0000 (22:57 +0200)
commit475cec322340e7082d85683dbaa44f00e4736bf6
treeb1438805e3a96ecf8802727f7ff4c886abaf274b
parent30432ffd9220cc949ef470c47455c6a64f2cdb69
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.

(cherry picked from commit 4e3060ee17e6eb8bab718d320199f713533dbbd6)
gcc/fortran/resolve.cc
gcc/testsuite/gfortran.dg/pure_formal_proc_4.f90 [new file with mode: 0644]