Bug 7269 – Named string enum cannot compile with -g
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2012-01-10T23:11:00Z
Last change time
2013-02-09T21:39:15Z
Keywords
rejects-valid
Assigned to
nobody
Creator
simendsjo
Comments
Comment #0 by simendsjo — 2012-01-10T23:11:52Z
enum E : string {
A = "a"
}
void main() {}
dmd -g
err.d(2): Error: Integer constant expression expected instead of "a"
err.d(2): Error: Integer constant expression expected instead of "a"
Comment #1 by simendsjo — 2012-01-11T06:48:51Z
.. For dmd 2.057. I haven't checked other versions.
Comment #2 by bearophile_hugs — 2012-01-11T09:51:01Z
(In reply to comment #1)
> .. For dmd 2.057. I haven't checked other versions.
The same problem is present with DMD 2.058head.
But maybe this issue is dupe.
Comment #3 by andrej.mitrovich — 2013-02-09T21:39:15Z