[flang-commits] [flang] [flang] Reject interface name declared by a later PROCEDURE statement (PR #232928)
via flang-commits
flang-commits at lists.llvm.org
Tue Oct 20 21:55:17 PDT 2026
================
@@ -11977,6 +11995,7 @@ class DeferredCheckVisitor {
void Post(const parser::ProcInterface &pi) {
if (const auto *name{std::get_if<parser::Name>(&pi.u)}) {
resolver_.CheckExplicitInterface(*name);
+ resolver_.CheckInterfaceNameDeclaredBeforeUse(*name);
----------------
Glitch-On wrote:
Added the check for deferred bindings in the same commit, with your example as module m2 in procinterface06.f90.
https://github.com/llvm/llvm-project/pull/232928
More information about the flang-commits
mailing list