[Issue 16243] wrong C++ argument passing with empty struct and 6 integers
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 24 10:57:10 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=16243
--- Comment #17 from Walter Bright <bugzilla at digitalmars.com> ---
On Linux x86, given the code:
struct S { };
int test(S s, int a) { return a; }
g++ produces:
mov EAX,8[ESP]
ret
while clang++ produces:
mov EAX,4[ESP]
ret
This is with optimization on. With it off, the same problem.
--
More information about the Digitalmars-d-bugs
mailing list