[clang] [clang][CFG] Fix crash on statement-expression in condition variable (PR #212138)

Oliver Hunt via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 26 18:52:20 PDT 2026


================
@@ -0,0 +1,73 @@
+// RUN: %clang_cc1 -std=c++17 -fsyntax-only -Wunreachable-code -verify %s
+
+// Do not crash when a condition variable or an init-statement is initialized
+// by a statement-expression containing control flow.  Such an initializer
+// finishes the current CFG block, so the builder must not assume the block it
+// started with is still current.
+// https://github.com/llvm/llvm-project/issues/211976
----------------
ojhunt wrote:

This looks like Claude generated test commentary.

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


More information about the cfe-commits mailing list