[Bug fortran/122508] [OpenMP] Labels referenced in metadirective body and defined in outer region mishandled
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Oct 31 16:38:48 GMT 2025
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.
More information about the Gcc-bugs
mailing list