diff options
Diffstat (limited to 'flang/lib/Parser/openmp-parsers.cpp')
-rw-r--r-- | flang/lib/Parser/openmp-parsers.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/flang/lib/Parser/openmp-parsers.cpp b/flang/lib/Parser/openmp-parsers.cpp index bba1be2..eae4784 100644 --- a/flang/lib/Parser/openmp-parsers.cpp +++ b/flang/lib/Parser/openmp-parsers.cpp @@ -136,6 +136,11 @@ TYPE_PARSER(construct<OmpReductionOperator>(Parser<DefinedOperator>{}) || construct<OmpReductionOperator>(Parser<ProcedureDesignator>{})) TYPE_PARSER(construct<OmpReductionClause>( + maybe( + ("INSCAN" >> pure(OmpReductionClause::ReductionModifier::Inscan) || + "TASK" >> pure(OmpReductionClause::ReductionModifier::Task) || + "DEFAULT" >> pure(OmpReductionClause::ReductionModifier::Default)) / + ","), Parser<OmpReductionOperator>{} / ":", Parser<OmpObjectList>{})) // OMP 5.0 2.19.5.6 IN_REDUCTION (reduction-identifier: variable-name-list) |