[clang] [OpenMP][TR12] change property of map-type modifier. (PR #90499)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 29 10:50:28 PDT 2024


================
@@ -4268,7 +4287,11 @@ bool Parser::parseMapTypeModifiers(SemaOpenMP::OpenMPVarListDataTy &Data) {
       }
       // Potential map-type token as it is followed by a colon.
       if (PP.LookAhead(0).is(tok::colon))
-        return false;
+        if (getLangOpts().OpenMP >= 60)
+          break;
+        else
+          return false;
+
----------------
alexey-bataev wrote:

Need extra braces here to correctly handle else

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


More information about the cfe-commits mailing list