https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85364
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- -fopenmp just implies -frecursive and has to, because the OpenMP semantics requires it. Does fortran guarantee that MAIN__ can't be invoked more than once? If so, perhaps MAIN__ could be special-cased for -frecursive, you'd need to update the docs too. There would be no way to force automatic variables in MAIN__ though if the user wants it for some reason (you can't mark MAIN__ RECURSIVE). On the other side, the user can easily do it now by adding SAVE attribute to the vars he doesn't want to be automatic.