[Issue 21035] wrong code when uses struct's methods of .init value

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jul 26 21:06:11 UTC 2020


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

KytoDragon <kytodragon at e.mail.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kytodragon at e.mail.de

--- Comment #4 from KytoDragon <kytodragon at e.mail.de> ---
Aren't the ".init" values read only? The append tries to change the "data"
member of the initializer, which results in an memory write error.

--


More information about the Digitalmars-d-bugs mailing list