[clang] [clang] Fixed inconsistent diagnostics when initializing a constexpr variable with a compound literal (PR #232825)
Abdulmalek Almkainzi via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 19 23:23:35 PDT 2026
aalmkainzi wrote:
Just tried what you said.
this test fails to compile:
https://github.com/llvm/llvm-project/blob/4cafedea923a996e77b91375ffd66dc28a87bf80/clang/test/C/C23/n3017.c#L104-L115
with the message `static assertion expression is not an integral constant expression`.
is this even valid C? maybe this test should be changed
https://github.com/llvm/llvm-project/pull/232825
More information about the cfe-commits
mailing list