Re: [PATCH] fortran: Reject array/allocatable LINEAR on DO [PR102430]

Jerry D <[email protected]>
Newsgroups gmane.comp.gcc.patches,gmane.comp.gcc.fortran
Message-ID <[email protected]>
On 1/13/26 7:40 AM, Christopher Albert wrote:
> 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.
> 
> Tested on x86_64-pc-linux-gnu.
> 
> 	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]>
> ---

Probably something for Tobias to review. I CCed.

Regards,

Jerry
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.