[Issue 2950] Switch for enum : string fails
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 26 16:20:12 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=2950
--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-10-26 16:20:10 PDT ---
Created an attachment (id=1157)
Partial patch
Partial patch against commit 6c01188d71433508bc4c0af6b821a97e8df2e986
The problem is this won't compile with -g option.
When `EnumDeclaration::toDebug` is called, it calls cv4_Denum, which expects
the enum to have an integer base type. It tries to call `toInteger` method on
the enum declaration.
`cv4_Denum` is a complicated function, I don't know how to implement a fix
there.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list