Defer available in gcc and clang

February 15, 2026 Defer available in gcc and clang About a year ago I posted about defer and that it would be available for everyone using gcc and/or clang soon. So it is probably time for an update. Two things have happened in the mean time: A technical specification (TS 25755) edited by JeanHeyd Meneide is now complete and moves through ISO’s complicated publication procedures. Both gcc and clang communities have worked on integrating this feature into their C implementations. I have not yet got my hands on the gcc implementation (but this is also less urgent, see below), but I have been able to use clang’s which is available starting with clang-22. I think that with this in mind everybody developing in C could and should now seriously consider switching to defer for their…

Read more on Hacker News