[flang-commits] [flang] [flang] Tag warnings with LanguageFeature or UsageWarning (PR #110304)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Mon Sep 30 08:49:10 PDT 2024


================
@@ -565,7 +566,7 @@ class CheckSpecificationExprHelper
       if (!scope_.IsModuleFile() &&
           context_.languageFeatures().ShouldWarn(
               common::LanguageFeature::SavedLocalInSpecExpr)) {
-        context_.messages().Say(
+        context_.messages().Say(common::LanguageFeature::SavedLocalInSpecExpr,
----------------
klausler wrote:

Warn() is in Semantics and can't be used in Evaluate.

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


More information about the flang-commits mailing list