[flang-commits] [flang] [llvm] [flang][OpenMP]Add support for OpenMP ERROR directive (PR #119582)

Mats Petersson via flang-commits flang-commits at lists.llvm.org
Thu Dec 12 05:00:54 PST 2024


================
@@ -4008,6 +4015,13 @@ struct OmpMapClause {
   std::tuple<MODIFIERS(), OmpObjectList, bool> t;
 };
 
+// Ref: [5.2:217-218]
+// message-clause ->
+//    MESSAGE("message-text")
+struct OmpMessageClause {
+  WRAPPER_CLASS_BOILERPLATE(OmpMessageClause, std::string);
----------------
Leporacanthicus wrote:

Ok, so I have updated to allow pretty much anything there. I think we need some semantics checks to make sure it's not `cos(exp(pi * cmplx(3.0, -2.0))` or something, but for the purposes of compiler doesn't say "I have no idea what this means", it should work.

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


More information about the flang-commits mailing list