[clang] [OpenMP][TR12] change property of map-type modifier. (PR #90499)
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 30 12:59:01 PDT 2024
================
@@ -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))
----------------
alexey-bataev wrote:
Maybe emit then the error in parseMapTypeModifiers too?
https://github.com/llvm/llvm-project/pull/90499
More information about the cfe-commits
mailing list