Files
clang-p2996/flang/test/Semantics/generic02.f90
Peter Klausler 3b7b7fa713 [flang] Accept a separate module procedure interface as a specific procedure
The code snippet

  module m
    interface
      module subroutine specific
      end subroutine
    end interface
    interface generic
       module procedure specific
    end interface
  end module

elicits a bogus semantic error about "specific" not being an acceptable
module procedure for the generic interface; fix.

Differential Revision: https://reviews.llvm.org/D134402
2022-09-23 11:18:01 -07:00

13 lines
339 B
Fortran

! RUN: %python %S/test_errors.py %s %flang_fc1
program test
interface generic
subroutine explicit(n)
integer, intent(in) :: n
end subroutine
procedure implicit
end interface
!ERROR: Specific procedure 'implicit' of generic interface 'generic' must have an explicit interface
external implicit
call generic(1)
end