Bug 5985 – string enum fails with debugging enabled
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-05-11T15:14:00Z
Last change time
2011-11-16T09:04:05Z
Keywords
patch, rejects-valid
Assigned to
nobody
Creator
Jesse.K.Phillips+D
Comments
Comment #0 by Jesse.K.Phillips+D — 2011-05-11T15:14:48Z
Compilation will fail if -g or -gc is used:
break.d(2): Error: Integer constant expression expected instead of "one"
break.d(2): Error: Integer constant expression expected instead of "one"
enum Test : string {
one = "one"
}
void main() {
}