Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions flang/lib/Semantics/resolve-names.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8738,6 +8738,9 @@ void ResolveNamesVisitor::FinishSpecificationPart(
CheckImports();
for (auto &pair : currScope()) {
auto &symbol{*pair.second};
if (inInterfaceBlock()) {
ConvertToObjectEntity(symbol);
}
if (NeedsExplicitType(symbol)) {
ApplyImplicitRules(symbol);
}
Expand Down
12 changes: 12 additions & 0 deletions flang/test/Semantics/implicit16.f90
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
! 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
Loading