Bug 16625 – [Reg 2.072] new and previously undeprecated switch case fallthrough error

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-10-19T12:10:00Z
Last change time
2017-01-16T23:23:57Z
Keywords
pull
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2016-10-19T12:10:43Z
cat > bug.d << CODE uint test(uint val) { switch (val) { case 1: val <<= 1; default: return val; } } CODE dmd -c bug ---- bug.d(6): Error: switch case fallthrough - use 'goto default;' if intended ---- Apparently this was a warning before but that doesn't warrant skipping the deprecation phase for new errors.
Comment #1 by code — 2016-10-19T15:54:22Z
Comment #2 by github-bugzilla — 2016-10-23T15:10:48Z
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/d8075dc0581ae1da6e27762689a2d902f4c0947e fix Issue 16625 - undeprecated switch fallthrough error https://github.com/dlang/dmd/commit/2ef22724b26c36e10df6771f80ba7d16e4380fe0 Merge pull request #6206 from MartinNowak/fix16625 fix Issue 16625 - undeprecated switch fallthrough error
Comment #3 by github-bugzilla — 2016-11-05T03:41:35Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/d8075dc0581ae1da6e27762689a2d902f4c0947e fix Issue 16625 - undeprecated switch fallthrough error https://github.com/dlang/dmd/commit/2ef22724b26c36e10df6771f80ba7d16e4380fe0 Merge pull request #6206 from MartinNowak/fix16625
Comment #4 by github-bugzilla — 2016-12-27T14:40:44Z
Commits pushed to scope at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/d8075dc0581ae1da6e27762689a2d902f4c0947e fix Issue 16625 - undeprecated switch fallthrough error https://github.com/dlang/dmd/commit/2ef22724b26c36e10df6771f80ba7d16e4380fe0 Merge pull request #6206 from MartinNowak/fix16625
Comment #5 by github-bugzilla — 2017-01-16T23:23:57Z
Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/d8075dc0581ae1da6e27762689a2d902f4c0947e fix Issue 16625 - undeprecated switch fallthrough error https://github.com/dlang/dmd/commit/2ef22724b26c36e10df6771f80ba7d16e4380fe0 Merge pull request #6206 from MartinNowak/fix16625