We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f8aeaf commit e60c571Copy full SHA for e60c571
flang/lib/Parser/openacc-parsers.cpp
@@ -236,7 +236,7 @@ TYPE_PARSER(construct<OpenACCBlockConstruct>(
236
Parser<AccBeginBlockDirective>{} / endAccLine, block,
237
// TODO: This still allows mismatched directives.
238
recovery(withMessage("expected OpenACC end block directive"_err_en_US,
239
- Parser<AccEndBlockDirective>{} / endAccLine),
+ attempt(Parser<AccEndBlockDirective>{} / endAccLine)),
240
// TODO: Is there a simpler way to build this?
241
sourced(construct<AccEndBlockDirective>(
242
sourced(construct<AccBlockDirective>(
0 commit comments