Bug 22415 – importC: Deprecation: switch case fallthrough - use 'goto case;' if intended

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-10-17T22:44:15Z
Last change time
2021-12-14T10:34:17Z
Keywords
diagnostic, ImportC, pull, rejects-valid
Assigned to
No Owner
Creator
Iain Buclaw

Comments

Comment #0 by ibuclaw — 2021-10-17T22:44:15Z
Deprecation warning is D-specific, and doesn't apply to C11 semantic rules. --- int test(int a) { switch (a) { case 0: a = 1; case 1: return a; case 2: default: return -1; } }
Comment #1 by dlang-bot — 2021-11-11T08:41:41Z
@WalterBright created dlang/dmd pull request #13283 "fix Issue 22415 - ImportC: Deprecation: switch case fallthrough - use…" fixing this issue: - fix Issue 22415 - importC: Deprecation: switch case fallthrough - use 'goto case;' if intended https://github.com/dlang/dmd/pull/13283
Comment #2 by dlang-bot — 2021-11-11T12:20:09Z
dlang/dmd pull request #13283 "fix Issue 22415 - ImportC: Deprecation: switch case fallthrough - use…" was merged into master: - c17799324a05bcd9c008788805857c12bf8ee5f9 by Walter Bright: fix Issue 22415 - importC: Deprecation: switch case fallthrough - use 'goto case;' if intended https://github.com/dlang/dmd/pull/13283
Comment #3 by dlang-bot — 2021-11-23T07:30:59Z
dlang/dmd pull request #13344 "[stable] importC: Backport master fixes to stable" was merged into stable: - 5cbbd56942ed2b455aa09a0b9087b288621dead5 by Walter Bright: fix Issue 22415 - importC: Deprecation: switch case fallthrough - use 'goto case;' if intended https://github.com/dlang/dmd/pull/13344
Comment #4 by dlang-bot — 2021-12-14T10:34:17Z
dlang/dmd pull request #13421 "merge stable" was merged into master: - 53f3dc76d5aff132c5ac2a9474330af70d17914e by Iain Buclaw: [stable] importC: Backport master fixes to stable (#13344) * fix Issue 22415 - importC: Deprecation: switch case fallthrough - use 'goto case;' if intended * ImportC: improve parsing error message Co-authored-by: Walter Bright <[email protected]> https://github.com/dlang/dmd/pull/13421