We were only checking the restrictions of IMPLICIT NONE(EXTERNAL) when a
procedure name is first encountered. But it can also happen with an
existing symbol, e.g. if an external function's return type is declared
before is it called. This change adds a check in that branch too.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
flang/lib/Semantics/resolve-names.cpp | ||
---|---|---|
5897 | Could this check be in check-declarations.cpp? |
flang/lib/Semantics/resolve-names.cpp | ||
---|---|---|
5897 | There are a couple of reasons it's easier to do it here:
|
Could this check be in check-declarations.cpp?