[flang-commits] [flang] [flang][Semantics] Adding check integer kind on STAT= specifier #230463 (PR #231103)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Mon Oct 12 18:46:40 PDT 2026
================
@@ -145,6 +153,15 @@ static void CheckSyncStat(SemanticsContext &context,
context.Say( // C1172
"The stat-variable in a sync-stat-list may not be repeated"_err_en_US);
}
+ if (const auto *expr{GetExpr(context, stat)})
+ if (auto type{expr->GetType()}; type &&
----------------
eugeneepshteyn wrote:
Nit: flang style wants braces on every `if` body, including this outer one (same at line 278). `git clang-format` also reformats lines 124-126 and 282-284.
https://github.com/llvm/llvm-project/pull/231103
More information about the flang-commits
mailing list