Issue |
117348
|
Summary |
wrong value for BOOL_WIDTH
|
Labels |
new issue
|
Assignees |
|
Reporter |
gustedt
|
C23 has a new feature test macro BOOL_WIDTH which is fixed by the standard to the value 1.
Clang has it as 8 in v. 14 to 20, gcc has the correct value.
Test this by compiling with `-std=c2x`
```
#include <limits.h>
static_assert(BOOL_WIDTH == 1);
```
Thanks
Jens
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs