@@ -634,18 +634,20 @@ TYPE_PARSER(
634
634
635
635
// Declarative constructs
636
636
TYPE_PARSER(startOmpLine >>
637
- sourced (construct<OpenMPDeclarativeConstruct>(
638
- Parser<OpenMPDeclareReductionConstruct>{}) ||
639
- construct<OpenMPDeclarativeConstruct>(
640
- Parser<OpenMPDeclareSimdConstruct>{}) ||
641
- construct<OpenMPDeclarativeConstruct>(
642
- Parser<OpenMPDeclareTargetConstruct>{}) ||
643
- construct<OpenMPDeclarativeConstruct>(
644
- Parser<OpenMPDeclarativeAllocate>{}) ||
645
- construct<OpenMPDeclarativeConstruct>(
646
- Parser<OpenMPRequiresConstruct>{}) ||
647
- construct<OpenMPDeclarativeConstruct>(Parser<OpenMPThreadprivate>{})) /
648
- endOmpLine)
637
+ withMessage (" expected OpenMP construct" _err_en_US,
638
+ sourced (construct<OpenMPDeclarativeConstruct>(
639
+ Parser<OpenMPDeclareReductionConstruct>{}) ||
640
+ construct<OpenMPDeclarativeConstruct>(
641
+ Parser<OpenMPDeclareSimdConstruct>{}) ||
642
+ construct<OpenMPDeclarativeConstruct>(
643
+ Parser<OpenMPDeclareTargetConstruct>{}) ||
644
+ construct<OpenMPDeclarativeConstruct>(
645
+ Parser<OpenMPDeclarativeAllocate>{}) ||
646
+ construct<OpenMPDeclarativeConstruct>(
647
+ Parser<OpenMPRequiresConstruct>{}) ||
648
+ construct<OpenMPDeclarativeConstruct>(
649
+ Parser<OpenMPThreadprivate>{})) /
650
+ endOmpLine))
649
651
650
652
// Block Construct
651
653
TYPE_PARSER(construct<OpenMPBlockConstruct>(
@@ -681,17 +683,18 @@ TYPE_PARSER(construct<OpenMPSectionsConstruct>(
681
683
682
684
TYPE_CONTEXT_PARSER(" OpenMP construct" _en_US,
683
685
startOmpLine >>
684
- first (construct<OpenMPConstruct>(Parser<OpenMPSectionsConstruct>{}),
685
- construct<OpenMPConstruct>(Parser<OpenMPLoopConstruct>{}),
686
- construct<OpenMPConstruct>(Parser<OpenMPBlockConstruct>{}),
687
- // OpenMPBlockConstruct is attempted before
688
- // OpenMPStandaloneConstruct to resolve !$OMP ORDERED
689
- construct<OpenMPConstruct>(Parser<OpenMPStandaloneConstruct>{}),
690
- construct<OpenMPConstruct>(Parser<OpenMPAtomicConstruct>{}),
691
- construct<OpenMPConstruct>(Parser<OpenMPExecutableAllocate>{}),
692
- construct<OpenMPConstruct>(Parser<OpenMPAllocatorsConstruct>{}),
693
- construct<OpenMPConstruct>(Parser<OpenMPDeclarativeAllocate>{}),
694
- construct<OpenMPConstruct>(Parser<OpenMPCriticalConstruct>{})))
686
+ withMessage (" expected OpenMP construct" _err_en_US,
687
+ first (construct<OpenMPConstruct>(Parser<OpenMPSectionsConstruct>{}),
688
+ construct<OpenMPConstruct>(Parser<OpenMPLoopConstruct>{}),
689
+ construct<OpenMPConstruct>(Parser<OpenMPBlockConstruct>{}),
690
+ // OpenMPBlockConstruct is attempted before
691
+ // OpenMPStandaloneConstruct to resolve !$OMP ORDERED
692
+ construct<OpenMPConstruct>(Parser<OpenMPStandaloneConstruct>{}),
693
+ construct<OpenMPConstruct>(Parser<OpenMPAtomicConstruct>{}),
694
+ construct<OpenMPConstruct>(Parser<OpenMPExecutableAllocate>{}),
695
+ construct<OpenMPConstruct>(Parser<OpenMPAllocatorsConstruct>{}),
696
+ construct<OpenMPConstruct>(Parser<OpenMPDeclarativeAllocate>{}),
697
+ construct<OpenMPConstruct>(Parser<OpenMPCriticalConstruct>{}))))
695
698
696
699
// END OMP Block directives
697
700
TYPE_PARSER(
0 commit comments