https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101731
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 51838 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51838&action=edit gcc12-pr101731.patch This brings the OpenACC handling closer to OpenMP, where fndecl_seen is set at the end of the *late_parsing* rather than in the function that finalizes it.