[cxx-abi-dev] Should C++ ABI specify how empty class is passed?

H.J. Lu hjl.tools at gmail.com
Wed Dec 9 21:39:40 UTC 2015


From

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60336

GCC passes empty class as one-byte record.  On x86-64, it is always
passed on stack.
Clang skips empty class the same way as C empty struct.  Empty C++
class is a corner
case which isn't covered in psABI nor C++ ABI.  Should C++ ABI specify
how it is passed?


-- 
H.J.


More information about the cxx-abi-dev mailing list