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

Paul Backus <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Paul Backus <[email protected]> ---
If `bb` and the constructor are marked as @safe, DMD produces the following
error:

---
Error: reference to stack allocated value returned by bb() assigned to
non-scope this.str
---

Separately from this, compiling with `-preview=dip1000` causes DMD to produce
the following error:

---
Error: cannot implicitly convert expression bb() of type char[12] to string
---

--

Reply via email to