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

Jack Stouffer <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #2 from Jack Stouffer <[email protected]> ---
(In reply to John Colvin from comment #1)
> You're writing to a string literal, which isn't allowed.
> 
> change to 
> 
> dchar[] a = "aaa"d.dup;
> 
> and it works fine.

I'm aware it's not allowed. The operative term was segfault, as opposed to
giving an error.

--

Reply via email to