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() { }
Comment #1 by r.sagitario — 2011-05-14T05:22:56Z
dmd should not try to output a string enumerator type record, it is marked as incomplete anyway. Here's the patch https://github.com/rainers/dmd/commit/9d69feb17f075757c9e6874f64b201fa2f40d5b0
Comment #2 by johann.macdonagh — 2011-06-15T19:17:49Z
This question came up in D.learn the other day. Is the patch ready to be submitted as a pull request to dmd?
Comment #3 by r.sagitario — 2011-07-16T06:09:03Z
*** Issue 6315 has been marked as a duplicate of this issue. ***
Comment #4 by r.sagitario — 2011-07-17T01:11:03Z
Comment #5 by Jesse.K.Phillips+D — 2011-11-16T09:04:05Z
Looks like there is an older report on this. *** This issue has been marked as a duplicate of issue 5168 ***