https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98183
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org Status|NEW |ASSIGNED --- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 49748 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49748&action=edit gcc11-pr98183.patch The problem is that the data regions allow exceptions to be thrown, so #pragma omp region for it is problematic. But I think we do everything for the end of the region by putting the end calls into finally during gimplification and so we should just treat those regions post omp-lowering as standalone directives like e.g. target update is.