Bug 22559 – ImportC: support gnu case ranges

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-12-02T23:54:19Z
Last change time
2023-04-04T10:17:16Z
Keywords
ImportC, pull
Assigned to
No Owner
Creator
dave287091

Comments

Comment #0 by dave287091 — 2021-12-02T23:54:19Z
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