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

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Mon Aug 4 07:52:51 PDT 2025


================
@@ -1305,11 +1307,17 @@ constexpr auto assumeAligned{"ASSUME_ALIGNED" >>
         indirect(designator), ":"_tok >> digitString64))};
 constexpr auto vectorAlways{
     "VECTOR ALWAYS" >> construct<CompilerDirective::VectorAlways>()};
+constexpr auto error{"ERROR" >>
+    construct<CompilerDirective::Error>(charLiteralConstantWithoutKind)};
----------------
klausler wrote:

In the PR comment, these character literals are parenthesized.

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


More information about the flang-commits mailing list