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.
https://github.com/dlang/dmd/pull/6206
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
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
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
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