[Issue 13775] Broken explicit casting of dynamic array slices of known size to static array of different type

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Dec 1 00:12:47 PST 2014


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

Jonathan M Davis <issues.dlang at jmdavisProg.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |issues.dlang at jmdavisProg.co
                   |                            |m

--- Comment #2 from Jonathan M Davis <issues.dlang at jmdavisProg.com> ---
(In reply to hsteoh from comment #1)
> I don't think any ICE is ever deliberate! :-) It's probably a breakage
> caused by fixing other parts of the compiler.

Yeah. ICEs are never added on purpose, and if they are, the compiler dev who
did it screwed up royally, but it's not that hard to accidentally break
something when changing something else (which is why we have the test suite to
catch most of that stuff and the beta releases to try and catch what the test
suite misses).

Now, as for the code, I would have thought that it would work, and if it
doesn't, and that's purposeful, I have no idea what the reason would be.
Certainly, I agree that if it doesn't work, it's an annoying change, even if it
has a proper error message.

--


More information about the Digitalmars-d-bugs mailing list