[Issue 14639] Assigning init value to struct uses stack, causing segfault

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed May 10 02:51:20 PDT 2017


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

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com

--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> ---
What's happening is the existence of the postblit, even though disabled, causes
the compiler to do the assignment by calling opAssign, where the argument is
passed by value. Passing by value means pushing it to the stack.

--


More information about the Digitalmars-d-bugs mailing list