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