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
13 lines
339 B
Fortran
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
|