[flang-commits] [flang] [flang] Support for warning and error compiler directives. (PR #151510)

via flang-commits flang-commits at lists.llvm.org
Tue Aug 5 05:52:18 PDT 2025


================
@@ -9248,7 +9248,12 @@ void ResolveNamesVisitor::Post(const parser::CompilerDirective &x) {
   if (std::holds_alternative<parser::CompilerDirective::VectorAlways>(x.u)) {
     return;
   }
-  if (const auto *tkr{
+  if (const auto *err{std::get_if<parser::CompilerDirective::Error>(&x.u)}) {
+    Say(err->v, "%s"_err_en_US);
+  }
----------------
shivaramaarao wrote:

done. thank you.

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


More information about the flang-commits mailing list