Hi Jerry,

I think that a "sorry" is better than an ICE on all the affected
branches. By all means push it to mainline and I will put it on the
schedule for backporting.

Thanks

Paul

On Tue, 7 Apr 2026 at 18:48, Jerry D <[email protected]> wrote:
>
> Hello all,
>
> The attached patch resolves this by issueing a sorry error.
>
> This fix is also relatively simple.
>
> I will also commit this one later today.
>
> Regression tested on x86_64.
>
> I dont think this one is worth backporting later. Let me know if anyone thinks
> otherwise.
>
> Regards,
>
> Jerry
> ---
>
> commit 396a6f28d770b27844cb7a340249d78f3f391649 (HEAD -> master)
> Author: Christopher Albert <[email protected]>
> Date:   Sun Dec 21 00:33:11 2025 +0100
>
>      fortran: Reject array/allocatable LINEAR on DO [PR102430]
>
>      The middle-end does not implement array/allocatable LINEAR for OpenMP
>      worksharing loops, which can ICE during OpenMP expansion.  Diagnose this
>      case in the Fortran front end with a sorry message instead.
>
>              PR fortran/102430
>
>      gcc/fortran/ChangeLog:
>
>       * openmp.cc (resolve_omp_clauses): Reject array/allocatable LINEAR on
>        worksharing-loop constructs.
>
>      gcc/testsuite/ChangeLog:
>
>        * gfortran.dg/gomp/pr102430.f90: New test.
>
>      Signed-off-by: Christopher Albert <[email protected]>

Reply via email to