On 4/18/25 5:48 PM, Jerry D wrote:
I will be committing a fix for this to the 16 mainline tonight.

I am requesting Release Manager approval to push to 15 release branch after full testing here.

Regards,

Jerry

See attached diff.

2025-04-18  Steven G. Kargl  <ka...@gcc.gnu.org>

PR fortran/119836
* resolve.cc(check_pure_function, pure_subroutine): Fix checking for
an impure subprogram within a DO CONCURRENT construct.


2025-04-18  Steven G. Kargl  <ka...@gcc.gnu.org>

PR fortran/119836
* gfortran.dg/do_concurrent_all_clauses.f90: Remove invalid
dg-error test.
* gfortran.dg/pr119836_1.f90: New test.
* gfortran.dg/pr119836_2.f90: Ditto.
* gfortran.dg/pr119836_3.f90: Ditto.
* gfortran.dg/pr119836_4.f90: Ditto.

I have committed to 16 and the backport to 15 is ready to go pending RM approval.

Best Regards,

Jerry

commit 5927077029d61fdd32531530b9568cf6949fe0dd (HEAD -> gcc15)
Author: Steven G. Kargl <ka...@gcc.gnu.org>
Date:   Fri Apr 18 18:05:10 2025 -0700

    Fortran: Fix checking for IMPURE in DO CONCURRENT.

            PR fortran/119836

    gcc/fortran/ChangeLog:

            * resolve.cc (check_pure_function): Fix checking for
            an impure subprogram within a DO CONCURRENT construct.
            (pure_subroutine): Ditto.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/do_concurrent_all_clauses.f90: Remove invalid
            dg-error test.
            * gfortran.dg/pr119836_1.f90: New test.
            * gfortran.dg/pr119836_2.f90: New test.
            * gfortran.dg/pr119836_3.f90: New test.
            * gfortran.dg/pr119836_4.f90: New test.

    (cherry picked from commit f9ea46d946887a05d7ecbca5aeeb99fd868f6e70)

Reply via email to