Gcc and clang have a case range extension for C which would map exactly to D’s case range statements. See https://gcc.gnu.org/onlinedocs/gcc/Case-Ranges.html
I haven’t encountered any headers using this feature, but my personal C programs use it as it is a nice extension.
Comment #1 by dlang-bot — 2023-04-01T21:33:04Z
@WalterBright created dlang/dmd pull request #15068 "fix Issue 22559 - ImportC: support gnu case ranges" fixing this issue:
- fix Issue 22559 - ImportC: support gnu case ranges
https://github.com/dlang/dmd/pull/15068
Comment #2 by dlang-bot — 2023-04-04T10:17:16Z
dlang/dmd pull request #15068 "fix Issue 22559 - ImportC: support gnu case ranges" was merged into master:
- 098a82f6ce9693cbe4075be8d0fc179095a2eeab by Walter Bright:
fix Issue 22559 - ImportC: support gnu case ranges
https://github.com/dlang/dmd/pull/15068