[Issue 20957] void member initialisation is ignored for out struct parameters

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 19 15:06:10 UTC 2020


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

jacob <look.at.me.pee.please at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |look.at.me.pee.please at gmail
                   |                            |.com

--- Comment #1 from jacob <look.at.me.pee.please at gmail.com> ---
Void initializers on structs don't do what you think they do. The whole
structure gets memcpy'd from the .init struct data. It just allows the compiler
to insert whatever it wants for the data that is void initialized in the .init
data.

--


More information about the Digitalmars-d-bugs mailing list