https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51591
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- OpenMP just says that a structured block "may contain STOP or ERROR STOP statements." and nothing else, what the particular behavior for STOP is is covered in the base language or is up to the implementation.