[Issue 10687] Refused cast from uint[] to array of uint-based enums at compile-time
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 3 17:26:14 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10687
bearophile_hugs at eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #7 from bearophile_hugs at eml.cc 2013-09-03 17:26:12 PDT ---
(In reply to comment #6)
> Commits pushed to master at https://github.com/D-Programming-Language/dmd
Sorry, I think the issue is not yet fixed, some of my code like this used to
work:
immutable uint[5][] M = [[0, 1, 2, 3, 4]];
enum Foo : uint { A, B, C, D, E }
void main() {
auto foos1 = cast(immutable(Foo[5][]))M; // OK
static foos2 = cast(immutable(Foo[5][]))M; // Error
}
--
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