https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81687
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 41916 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41916&action=edit gcc8-pr81687.patch Untested fix. Of course, referencing a label outside of a target region from a target region when offloading or referencing a label from the target region from outside of a target region will still not work (but then it is a clear don't do that).