Y
Hacker News
new
|
ask
|
show
|
jobs
by
dekhn
714 days ago
It appears to be a GNU C extension:
https://gcc.gnu.org/onlinedocs/gcc/Case-Ranges.html
but I couldn't find the history of the extension. I believe it is not in standard C (not sure about clang).
2 comments
nj5rq
714 days ago
I just tried it, and it works with clang version 17.0.6.
link
astrange
714 days ago
Clang supports almost all GNU C extensions. Maybe not nested functions because they need executable stacks.
link