Bug 8445 – non-int enum values cause error when compiled with -g
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-07-26T10:46:00Z
Last change time
2012-07-26T14:16:09Z
Assigned to
nobody
Creator
simen.kjaras
Comments
Comment #0 by simen.kjaras — 2012-07-26T10:46:52Z
This code:
enum a : string{a = ""}
Leads to this error when compiled with dmd -g foo:
foo.d(1): Error: Integer constant expression expected instead of ""
foo.d(1): Error: Integer constant expression expected instead of ""
Comment #1 by bearophile_hugs — 2012-07-26T13:31:15Z
Dupe of Issue 5168 ?
Comment #2 by simen.kjaras — 2012-07-26T14:16:09Z
(In reply to comment #1)
> Dupe of Issue 5168 ?
Absolutely.
*** This issue has been marked as a duplicate of issue 5168 ***