https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104532
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 52454 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52454&action=edit gcc12-pr104532.patch Untested patch I wrote in the meantime (passes make check-gcc for gomp.exp/goacc.exp/goacc-gomp.exp so far).