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


================
@@ -423,7 +423,7 @@ bool issue155507(v2int16_t a, v2int16_t b) {
     return __builtin_bit_cast(unsigned char, __builtin_convertvector(a == b, __vbool2)) == 0b11;
 }
 
-constexpr bool b2 = (bool)nullptr;
+constexpr bool b2 = (bool)nullptr; // expected-warning {{expression is not an integer constant expression}}
----------------
nickdesaulniers wrote:

Please make sure to disclose if an LLM is being used for this PR: https://llvm.org/docs/AIToolPolicy.html#policy

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


More information about the cfe-commits mailing list