News: 0001475139

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

LLVM Clang 19 Adds Initial "-std=c2y" Support For The Next C Standard

([LLVM] 3 Hours Ago -std=c2y and -std=gnu2y)


LLVM Clang 19 this morning landed initial support for the -std=c2y and -std=gnu2y options for targeting the next C programming language standard.

LLVM Clang 19 is now honoring -std=c2y and -std=gnu2y for targeting the next in-progress C standards. This next revision will likely be called "C26" but as the 2026 publication isn't yet guaranteed, for the time being only the "C2Y" placeholder is being recognized and honored along with GNU2Y as the GNU dialect of C2Y. LLVM Clang 19 also bumps the __STDC_VERSION__ macro to 202400L for reflecting the newer revision.

For now there isn't much to the C2Y support in LLVM/Clang but with time will obviously evolve more past C23 and as more C2Y proposals are published. The C2Y support in LLVM can be tracked via the [1]C status page .

[2]This commit is what adds the initial C2Y/GNU2Y targeting today to LLVM Clang 19 Git.



[1] https://clang.llvm.org/c_status.html#c2y

[2] https://github.com/llvm/llvm-project/commit/b67d557bd3627a428d5041edec129587d6d3972c



phoronix

Let us be charitable, and call it a misleading feature :-)
-- Larry Wall in <2609@jato.Jpl.Nasa.Gov>