flang-compiler / f18

F18 is a front-end for Fortran intended to replace the existing front-end in the Flang compiler
230 stars 48 forks source link

Dummy arguments of separate (sub) module procedure not declared #1054

Closed LKedward closed 4 years ago

LKedward commented 4 years ago
module m
  implicit none
  interface
    module subroutine sub1(a)
      integer :: a
    end subroutine sub1
  end interface
end module m

submodule (m) sm
  implicit none
  contains
    module procedure sub1
      write(*,*) a
    end procedure sub1
end submodule sm

This is giving semantic error:

error: No explicit type declared for 'a'