Bug 15909 – Duplicate case error reports characters as numbers

Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-04-10T02:01:52Z
Last change time
2020-11-16T00:10:04Z
Keywords
pull
Assigned to
No Owner
Creator
andy.pj.hanson

Comments

Comment #0 by andy.pj.hanson — 2016-04-10T02:01:52Z
This code: void main() { switch ('a') { case 'a': case 'a': break; } } Fails with this error: app.d(3): Error: duplicate case 97 in switch statement It would be nicer to use 'a' instead of 97.
Comment #1 by dlang-bot — 2020-09-09T20:42:45Z
@Luhrel created dlang/dmd pull request #11716 "Fix Issue 15909 - Duplicate case error reports characters as numbers" fixing this issue: - Fix Issue 15909 - Duplicate case error reports characters as numbers https://github.com/dlang/dmd/pull/11716
Comment #2 by dlang-bot — 2020-09-27T23:43:17Z
dlang/dmd pull request #11716 "Fix Issue 15909 - Duplicate case error reports characters as numbers" was merged into stable: - 2bdadbb1dad8359ec8fb331c4ffc85776797ddda by Luhrel: Fix Issue 15909 - Duplicate case error reports characters as numbers https://github.com/dlang/dmd/pull/11716
Comment #3 by dlang-bot — 2020-10-18T03:23:20Z
dlang/dmd pull request #11845 "merge stable" was merged into master: - d0a0a7e926498319117a01802bedbd94b90da6b2 by Luhrel: Fix Issue 15909 - Duplicate case error reports characters as numbers https://github.com/dlang/dmd/pull/11845
Comment #4 by dlang-bot — 2020-11-16T00:10:04Z
dlang/dmd pull request #11961 "merge stable" was merged into master: - ccf2c7f0bcbae575b1c1794d657cf9b89717b19f by Luhrel: Fix Issue 15909 - Duplicate case error reports characters as numbers https://github.com/dlang/dmd/pull/11961