Files
clang-p2996/flang/test/Semantics/implicit13.f90
Peter Klausler c32d5458b5 [flang] Don't complain about dummy subroutine under IMPLICIT NONE
The compiler emits a bogus 'No explicit type declared for...' error
when a dummy procedure turns out to be a subroutine (or at least not
a function or object) under control of IMPLICIT NONE.

Fixes https://github.com/llvm/llvm-project/issues/60224

Differential Revision: https://reviews.llvm.org/D150814
2023-05-18 14:03:28 -07:00

10 lines
246 B
Fortran

! RUN: %python %S/test_errors.py %s %flang_fc1
!ERROR: No explicit type declared for 'func'
!ERROR: No explicit type declared for 'obj'
subroutine implicit_none(func, sub, obj)
implicit none
call sub ! ok
print *, func()
print *, obj
end