[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:46:18 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)};
----------------
shivaramaarao wrote:

Thanks. updated the PR comment.

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


More information about the flang-commits mailing list