On 3/2/26 10:51 AM, Javier Martinez wrote:
> gcc 15 is more strict with syntax, software developers should correct
> their syntax


This is, strictly speaking, incorrect.

GCC 15 defaults to -std=c23 if you don't specify one yourself. Older GCC
versions can still compile with c23 enabled.

https://gcc.gnu.org/gcc-15/porting_to.html#c23


sys-apps/coreutils-9.9-r12 has a fix for the following bug:

https://bugs.gentoo.org/969219

commit 7ba56b7e6e569ba2d8bded51c27df7f2e02852e0
Author:     Sam James <[email protected]>
AuthorDate: Sat Jan 24 23:35:56 2026
Commit:     Sam James <[email protected]>
CommitDate: Sat Jan 24 23:35:56 2026

    sys-apps/coreutils: fix build w/ glibc-2.43 + c23

    Closes: https://bugs.gentoo.org/969219
    Signed-off-by: Sam James <[email protected]>


Of course, you are correct gcc 14 works and gcc 15 breaks, but it is
because of the default -std.

See also,
https://github.com/coreutils/gnulib/commit/df17f4f37ed3ca373d23ad42eae51122bdb96626

"Port to C23 qualifier-generic fns like strchr"



-- 
Eli Schwartz

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to