[llvm-branch-commits] [clang] [Clang] [C++26] Expansion Statements (Part 9: Control Flow) (PR #169688)
Shafik Yaghmour via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Jul 9 18:55:35 PDT 2026
================
@@ -783,6 +784,12 @@ StmtResult Parser::ParseLabeledStatement(ParsedAttributes &Attrs,
DiagnoseLabelFollowedByDecl(*this, SubStmt.get());
+ // If a label cannot appear here, just return the underlying statement.
----------------
shafik wrote:
I would add to the comment noting it will be diagnosed in `LookupOrCreateLabel` already.
https://github.com/llvm/llvm-project/pull/169688
More information about the llvm-branch-commits
mailing list