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

Steven Schveighoffer <schvei...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schvei...@gmail.com

--- Comment #1 from Steven Schveighoffer <schvei...@gmail.com> ---
druntime regression, though really we should just fix the `inout` restriction.

The `_d_newarrayUPureNothrow` is building an array of `inout(char)`, which is
wrong at this point. It should always return mutable data, and then properly
cast at the right place. Ideally, only one cast should ever be present.

The prior version of druntime avoids all the casts by just using `extern(C)`
functions with `TypeInfo` and void arrays.

Change is here: https://github.com/dlang/dmd/pull/16097

--

Reply via email to