[Issue 21364] Passing a struct by-value adds padding that breaks argument access within the function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 9 09:22:10 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21364
--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> ---
Because of alignment, X.sizeof is 16. So the call is correct, but foo() gets it
wrong and treats the size as 12.
--
More information about the Digitalmars-d-bugs
mailing list