Ensure type is checked before analysis of compound literals. #919

This commit is contained in:
Christoffer Lerno
2023-08-11 18:15:39 +02:00
parent 3e765a3f3e
commit f0d4c4d2ce
3 changed files with 7 additions and 3 deletions

View File

@@ -0,0 +1 @@
const IS_ARCH_LITTLE_ENDIAN = (uint)(UIntLE{(uint)1}.val) == 1; // #error: This expression cannot be evaluated at compile time