[clang] [Clang] support storage-class specifiers in C23 compound literals (PR #212559)

Nick Desaulniers via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 28 15:00:29 PDT 2026


================
@@ -185,7 +185,7 @@ constexpr struct S5 V47[3] = {randomFoo() };
 // expected-error at -1 {{constexpr variable 'V47' must be initialized by a constant expression}}
 
 const static int V48 = V38;
-constexpr static int V49 = V48;
+constexpr static int V49 = V48; // expected-warning {{expression is not an integer constant expression}}
 // expected-error at -1 {{constexpr variable 'V49' must be initialized by a constant expression}}
----------------
nickdesaulniers wrote:

duplicative?

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


More information about the cfe-commits mailing list