[clang] [clang][Sema] Fix crash on [[fallthrough]] in stmt-expr initializers (PR #248042)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 2 10:50:54 PST 2026
================
@@ -81,3 +81,27 @@ void g(void) {
}
}
+// Fallthrough in a GNU statement expression used as a VarDecl initializer
+// must not crash FallthroughMapper when another fallthrough exists later.
+int stmt_expr_fallthrough_init(int a) {
----------------
shafik wrote:
@AaronBallman if this fails in both C and C++ I don't think we need to have both sets of tests, right. There is nothing language specific about this bug?
https://github.com/llvm/llvm-project/pull/248042
More information about the cfe-commits
mailing list