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

--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> ---
(In reply to Tobias Burnus from comment #1)
> Created attachment 62681 [details]
> Draft patch, lightly tested

Thinking about it, I think it does not handle nested metadirectives correctly
as it only works with 0 and current value of gfc_omp_metadirective_region_count
– but it seems as if we need a stack, starting with 0 and then walking down to
the innermost gfc_omp_metadirective_region.

Reply via email to