================
@@ -4675,8 +4709,10 @@ bool Parser::ParseOpenMPVarList(OpenMPDirectiveKind 
DKind,
     // Only parse map-type-modifier[s] and map-type if a colon is present in
     // the map clause.
     if (ColonPresent) {
+      if (getLangOpts().OpenMP >= 60 && getCurToken().is(tok::colon))
----------------
jyu2-git wrote:

I only need to emit error for map(: a),   I don't need emit error like map(,,: 
a), since the error already emit during parseMapTypeModifiers. 

The ColonPresent will be set for when ":" exist for map clause.

https://github.com/llvm/llvm-project/pull/90499
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to