Re: limits-h: Fix BOOL_MAX value

2024-02-12 Thread Bruno Haible
Collin Funk wrote: > Both ISO C 23 § 5.2.4.2.1 and > Annex E seem to say BOOL_WIDTH must be exactly 1. I have no idea what the footnote "This value is exact." in § 5.2.4.2.1 means. And Annex E is informational, not normative. Therefore, I think, the grounds for claiming a clang bug are weak. Bru

Re: limits-h: Fix BOOL_MAX value

2024-02-12 Thread Collin Funk
On 2/12/24 5:09 AM, Bruno Haible wrote: > BOOL_WIDTH = 1, BOOL_MAX = 1 > with CC="gcc -std=gnu2x", but > BOOL_WIDTH = 8, BOOL_MAX = 1 > with CC="clang -std=gnu2x" (for all clang version 14 ... 17). Same results with GCC 14 and Clang 19. > Apparently I had misinterpreted the meaning of BOOL_