https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68534

            Bug ID: 68534
           Summary: No error on mismatch in number of arguments between
                    submodule and module interface
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pault at gcc dot gnu.org
  Target Milestone: ---

As reported by FortranFan on clf, the following does not produce an error:

module m
   implicit none
   interface
      module subroutine foo()
      end subroutine foo
   end interface
end module m

submodule(m) sm
contains
   module subroutine foo(i)
      integer, intent(inout) :: i
      i = 42
      return
   end subroutine foo
end submodule sm

Paul

Reply via email to