https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69090

--- Comment #9 from Tobias Burnus <burnus at gcc dot gnu.org> ---
(In reply to Thomas Schwinge from comment #8)
> Has this been fixed via PR96668 "[OpenMP] Re-mapping allocated but
> previously unallocated allocatable does not work", by chance?  (Tobias?)

I think both examples should work since that commit went into GCC 11 (untested,
however).

(It is clear why the example in comment 0 did not work back then (2015),
 but the one in comment 7 is unclear as no GCC version was mentioned;
 if it was mainline it should work (GCC 11), if it was a release
 branch, the fail is understandable.)

NOTE: While the fix for PR96668 handles previously unallocated arrays,
the OpenMP specification since 5.1 (or rather already TR 9) clarified that
the 'always' modifier is required. This requirement might go away in
OpenMP 6.0, but even TR11 still has it.

NOTE 2: PR96668 is not yet closed as scalar allocatables are not handled, yet.
(But both examples in this PR use arrays.)

Reply via email to