[flang-commits] [flang] [flang][semantics] add semantic check that STAT and ERRMSG are not (de)allocated by same statement (PR #164529)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Wed Oct 22 09:02:01 PDT 2025


================
@@ -690,6 +700,20 @@ bool AllocationCheckerHelper::RunChecks(SemanticsContext &context) {
           "Object in ALLOCATE must have DEVICE attribute when STREAM option is specified"_err_en_US);
     }
   }
+  if (allocateInfo_.gotStat && allocateInfo_.statVar) {
----------------
klausler wrote:

`gotStat` isn't relevant here, is it?

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


More information about the flang-commits mailing list