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

Vladimir Panteleev <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dlang-bugzilla@thecybershad
                   |                            |ow.net
         Resolution|---                         |INVALID

--- Comment #5 from Vladimir Panteleev <[email protected]> ---
(In reply to b.j.dejong from comment #0)
> struct Bug {
>     float[] elements = new float[4];

This code is invalid - Every instance of the "Bug" type will have its
"elements" field will point to the same copy of the array. It should not have
compiled. See issue 17604.

--

Reply via email to