[Issue 8888] char enums inside functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Oct 27 12:41:03 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8888



--- Comment #2 from hsteoh at quickfur.ath.cx 2012-10-27 12:41:02 PDT ---
This bug seems to happen only if you assign specific values to the enum. This
works:

void main() {
    enum Code : char { A, B, C }
    auto arr = [Code.A, Code.B];
}

But this doesn't:

void main() {
    enum Code { A=1, B=2, C=2 }
    auto arr = [Code.A, Code.B];
}

So the bug isn't specific to char enums, it's just the presence of initializers
that trigger it.

-- 
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