[clang] [Clang][Sema] Error message refers to `__begin1` with `constexpr` variable in range-based for loop (PR #218145)

Shengxin Pei via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 23 08:16:44 PDT 2026


================
@@ -0,0 +1,87 @@
+// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -std=c++17 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -std=c++23 -fsyntax-only -verify %s
+
+// GH211926: constexpr range-based for loop variables used to be diagnosed
+// with a note about the compiler-synthesized '__begin1' variable.
----------------
TPPPP72 wrote:

Not needed

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


More information about the cfe-commits mailing list