[flang-commits] [flang] [flang] Implement check for statement function dummy argument names (PR #204417)

via flang-commits flang-commits at lists.llvm.org
Thu Jun 18 08:52:21 PDT 2026


================
@@ -10451,6 +10451,24 @@ void ResolveNamesVisitor::AnalyzeStmtFunctionStmt(
       details->moduleInterface() || symbol->test(Symbol::Flag::Subroutine)) {
     return; // error recovery
   }
+
+  // F2023 19.4 p2: a statement-function dummy argument name may be the same
----------------
kwyatt-ext wrote:

Correct.  Added a fix for this and new test case.

https://github.com/llvm/llvm-project/pull/204417


More information about the flang-commits mailing list