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

Aaron Ballman via flang-commits flang-commits at lists.llvm.org
Tue Nov 7 04:29:48 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;
----------------
AaronBallman wrote:

Done

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


More information about the flang-commits mailing list