_Static_assert not accepted in empty switch/case clause #69572
Labels
c11
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
duplicate
Resolved as duplicate
rejects-valid
compiled with clang -c c.c -std=c11
error: expected expression
_Static_assert(1, "error message");
Impacted version: from llvm-14 to llvm-17
Strange thing is if I put some statements before the _Static_assert it will work.
GCC compiles it fine.
The text was updated successfully, but these errors were encountered: