blob: 7b22c415033d1dcbd787e017a4e8616b75e6219e [file] [log] [blame]
! { dg-do compile }
!
! PR fortran/31600
!
module a
implicit none
contains
integer function bar()
bar = 42
end function
end module a
use a ! { dg-error "Symbol 'bar' at \\(1\\) conflicts with symbol from module 'a'" }
implicit none
integer :: bar ! { dg-error "Symbol 'bar' at \\(1\\) conflicts with symbol from module 'a'" }
end