[flang-commits] [llvm] [compiler-rt] [libc] [clang] [libcxx] [flang] [clang-tools-extra] [C23] Complete support for WG14 N2508 (PR #71398)

via flang-commits flang-commits at lists.llvm.org
Mon Nov 6 16:30:32 PST 2023


================
@@ -712,9 +722,7 @@ StmtResult Parser::ParseLabeledStatement(ParsedAttributes &Attrs,
   assert(Tok.is(tok::identifier) && Tok.getIdentifierInfo() &&
          "Not an identifier!");
 
-  // The substatement is always a 'statement', not a 'declaration', but is
-  // otherwise in the same context as the labeled-statement.
-  StmtCtx &= ~ParsedStmtContext::AllowDeclarationsInC;
+  StmtCtx &= ~ParsedStmtContext::AllowStandaloneOpenMPDirectives;
----------------
cor3ntin wrote:

I think this deserves a comment.

https://github.com/llvm/llvm-project/pull/71398


More information about the flang-commits mailing list