Files
clang-p2996/flang/test/Semantics/implicit16.f90
Peter Klausler 1e19e1e1a4 [flang] Catch untyped entities in interfaces with IMPLICIT NONE (#109018)
The order of operations in name resolution wasn't converting named
entities to objects by the time that they were subjected to the implicit
typing rules in the case of interface blocks. This led to entities
remaining untyped without error, leading to a crash in module file
generation.

Fixes https://github.com/llvm/llvm-project/issues/108975.
2024-09-18 12:20:39 -07:00

13 lines
240 B
Fortran

! RUN: %python %S/test_errors.py %s %flang_fc1
interface
!ERROR: No explicit type declared for 'a'
subroutine s(a)
implicit none
end
!ERROR: No explicit type declared for 'f'
function f()
implicit none
end
end interface
end