]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Source allocation of pure module function rejected [PR119948]
authorPaul Thomas <pault@gcc.gnu.org>
Wed, 7 May 2025 07:52:52 +0000 (08:52 +0100)
committerPaul Thomas <pault@gcc.gnu.org>
Wed, 7 May 2025 07:59:16 +0000 (08:59 +0100)
commit625b805544101ae90fbe789a5eeba44cd14e89fb
treee3dc69394d1c812cf6f1be458cbd36eb47a7f3aa
parent2c46a74d4707bd1e67561ed8514c67efc6164832
Fortran: Source allocation of pure module function rejected [PR119948]

2025-05-07  Paul Thomas  <pault@gcc.gnu.org>
    and Steven G. Kargl  <kargl@gcc.gnu.org>

gcc/fortran
PR fortran/119948
* primary.cc (match_variable): Module procedures with sym the
same as result can be treated as variables, although marked
external.

gcc/testsuite/
PR fortran/119948
* gfortran.dg/pr119948.f90: Update to incorporate failing test,
where module procedure is the result. Test submodule cases.
gcc/fortran/primary.cc
gcc/testsuite/gfortran.dg/pr119948.f90