Gfortran and .smod files

How could you check that code if it is invalid? :slight_smile:
The last declaration should read integer :: const = 42

But more seriously. If there is no module procedure in the master module, no .smod file is generated by gfortran, either 12.2.0 or 13.2.0. So this claim:

does not seem to hold.

$ gfortran-13 -c mod.f90    # corrected code :)
$ ls mod*
mod.f90  mod.mod  mod.o