[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:28 PDT 2026


================
@@ -162,7 +162,7 @@ const int V35 = 2;
 
 constexpr int V36 = V33 / V34;
 // expected-error at -1 {{constexpr variable 'V36' must be initialized by a constant expression}}
-constexpr int V37 = V33 / V35;
+constexpr int V37 = V33 / V35; // expected-warning {{expression is not an integer constant expression}}
 // expected-error at -1 {{constexpr variable 'V37' must be initialized by a constant expression}}
----------------
nickdesaulniers wrote:

seems duplicative

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


More information about the cfe-commits mailing list