On Sat, Apr 20, 2019 at 09:51:11PM +0200, Dominique d'Humières wrote: > OK I missed the previous error. However I am still puzzled by (2): > > + > +found outside of a module >
Why are you puzzled? Did you read the patch? The entire error message is + gfc_error ("MODULE prefix at %C found outside of a module, " + "submodule, or interface"); In program foo contains module subroutine foo end subroutine foo end program foo The "MODULE prefix" attached to "subroutine foo" is found outside of a module, a submodule, or interface. -- Steve