There is a discrepancy when passing empty struct in C++ on x86-64
between GCC and Clang:

https://groups.google.com/forum/#!topic/x86-64-abi/EZzVyvSxUx4

An empty struct of size 1 byte is classified as NO_CLASS.
GCC uses an eight byte slot to pass it on stack and returns it in
EAX while Clang just skips it.  Is this possible to pass/return empty
struct for C++ the same way as for C?

-- 
H.J.

Reply via email to