Am 03.11.25 um 21:02 schrieb Jerry D:
The attached patch from Steve fixes this.

Regression tested on x86_64.

OK for trunk?

Regards,

Jerry

commit e7096708b2e4c8ca40c50537f1d227e15a89bc2d
Author: Steve Kargl <[email protected]>
Date:   Mon Nov 3 11:47:54 2025 -0800

      Fortran: Fix check on locality spec DO CONCURRENT

              PR fortran/122513

      gcc/fortran/ChangeLog:

              * resolve.cc (check_default_none_expr): Do not allow an
              iterator in a locality spec. Allow a named constant to be
              used within the loop.

      gcc/testsuite/ChangeLog:

              * gfortran.dg/pr122513.f90: New test.

Hi Jerry,

this is OK for trunk.

Thanks for the patch!

Harald


Reply via email to