On 11/26/26 4:47 AM, Tobias Burnus wrote:
v3: Fix 'lastprivate(conditional:', which calls
gfc_omp_scalar_p with permit ptr/allocatable. v2 changes caused some reject- valid, but as the here added testcases show, some valid cases were rejected before as well. I think some "valid" cases might still be rejected (Cray pointees? But they are really deprecated on all sides and were not supported before, either.) Next try ... Tobias Tobias Burnus wrote:


It does touch on my patch for PR129002. I will do a fixup on my end after you commit.

Cheers,

Jerry>
Version 2 - using the AI-suggested change for the scalar check;
sashiko/gemini used ENTRY as example, but I think type(c_ptr)
looks like a better example (possibly not triggered by the
original code, but still worthwhile to check that it counts
as aggregate).

Unless there are further comments, I plan to commit it soon.

Tobias Burnus:

Another trivial bug reported at
https://offtarget.sh/issues/gcc--gcc-defaultmap-to-pointer-copy-back.html

Fortran pointer arrays (with descriptor) couldn't be properly
distinguished from aggregates.

It also turned out that the 'scalar' check didn't properly handled
optional arguments.

I intent to commit this later today, unless there are comments
(including AI ones).

Tobias

PS: defaultmap-8.f90's PR fortran/100991 xfail is now fixed. It is
claused as INVALID, but I think this part is fine. See PR109831 for
some wording that avoids issues with absent 'optional', we previously
feared.

Reply via email to