[Issue 20130] ICE illegal instruction when casting imported string

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 21 16:05:59 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=20130

Basile-z <b2.temp at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp at gmx.com
           Hardware|x86_64                      |All
                 OS|Linux                       |All

--- Comment #1 from Basile-z <b2.temp at gmx.com> ---
this is an __ArrayCast that's not written. Can be more simply reproduced with

void main() {
    enum string a = "a";
    immutable array = cast(uint[])a;
} 

casting from strings is seriously broken (import() gives a string)

--


More information about the Digitalmars-d-bugs mailing list