Bug 22038 – final switch error message should report all missing enum members

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-06-18T14:12:33Z
Last change time
2021-07-07T07:38:02Z
Keywords
pull
Assigned to
No Owner
Creator
Dennis

Comments

Comment #0 by dkorpel — 2021-06-18T14:12:33Z
When turning a normal switch into a final switch, I often go through this sequence: - recompile - Error: `enum` member `A` not represented in `final switch` - add case for A - recompile - Error: `enum` member `B` not represented in `final switch` - add case for B - recompile - Error: `enum` member `C` not represented in `final switch` etc. It would be more convenient if the compiler didn't stop at the first missing member.
Comment #1 by dlang-bot — 2021-06-18T14:46:17Z
@dkorpel updated dlang/dmd pull request #12709 "Fix issue 22038 - final switch error message should report all missing enum members" fixing this issue: - fix issue 22038 - final switch error message should report all missing enum members https://github.com/dlang/dmd/pull/12709
Comment #2 by dlang-bot — 2021-07-07T07:38:02Z
dlang/dmd pull request #12709 "Fix issue 22038 - final switch error message should report all missing enum members" was merged into master: - d7e217ae5fa3ee130299d43a3fd166ba499134a3 by dkorpel: fix issue 22038 - final switch error message should report all missing members https://github.com/dlang/dmd/pull/12709