logoalt Hacker News

tredre3 • 12/08/2024 • 1 reply • view on HN

> or just not giving it a name (nonstandard, but very commonly supported)

It's only supported by gcc 11+ and clang 11+ (both from ~2021) because it was a suggested C2x extension. It's been accepted in C23 so other compilers will eventually support it, but I wouldn't hold my breath regarding when that happens.


Replies

Sesse__ • 12/08/2024

Ah, of course, in C mode it's different. (I nearly always use C++ mode, where at least GCC 10 happily takes it.)