On 2022-10-14 14:08, Simon Josefsson via Gnulib discussion list wrote:
Shouldn't the following cause a compilation error?

$ podman run -it gcc:latest
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, unless you are using bleeding-edge GCC. Support for the keywords bool, true and false was added in GCC commit 0a91bdaf177409a2a5e7895bce4f0e7091b4b3ca dated 2022-09-07.

That GCC commit also added support for the C23 keywords alignas, alignof, static_assert, and thread_local, where you may see similar issues.

Reply via email to