[Issue 19840] Ice in e2ir.d visit(CastExp) assert(false, "This case should have been rewritten to `__ArrayCast` in the semantic phase");
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 2 00:12:22 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19840
Mike Franklin <slavo5150 at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |slavo5150 at yahoo.com
--- Comment #2 from Mike Franklin <slavo5150 at yahoo.com> ---
The expression that is causing the problem is `cast(U[])M([]).I`
Unfortunately `I` is being reported as type `G` instead of type `ubyte[]` and
that is why the compiler errors.
So I don't think PR 9516 has introduced any bug, but I do believe it has
revealed a problem elsewhere in the compiler. The solution will be to ensure
`I` has a type of `ubyte[]` instead of G.
--
More information about the Digitalmars-d-bugs
mailing list