bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stdbool module unconditionally #define true


From: Simon Josefsson
Subject: Re: stdbool module unconditionally #define true
Date: Sun, 16 Oct 2022 11:17:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Bruno Haible <bruno@clisp.org> writes:

> Paul Eggert wrote:
>> > Shouldn't the following cause a compilation error?
>> > 
>> > root@18544d251872:/# cat>foo.c
>> > int main (void) {
>> > int true = 42;
>> > return true;
>> > }
>> 
>> Yes if you have a C23 compiler, which GCC 12 isn't. To get a proper 
>> compilation error you will have to wait for a future GCC release ...
>
> clang 15 already supports this part of C23. I installed the clang-15.0.2
> binaries from https://github.com/llvm/llvm-project/releases/tag/llvmorg-15.0.2
> on a CentOS 8-stream machine, and it produces the error that you expect:

Wonderful, I managed to reproduce this now -- and it triggered a bunch
of other C23 issues with InetUtils and I'm sure in other projects too
when I get to it...  thank you!

/Simon

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]