[Bug c++/60336] empty struct value is passed differently in C and C++
hjl.tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Jan 27 13:50:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60336
--- Comment #45 from H.J. Lu <hjl.tools at gmail dot com> ---
I opened a clang bug:
https://llvm.org/bugs/show_bug.cgi?id=26337
I propose the following definitions:
i. An empty record is:
1. A class without member. Or
2. An array of empty records. Or
3. A class with empty records.
ii. An empty record type for parameter passing is POD for the purpose of
layout and
1. A class without member. Or
2. A class with empty records.
More information about the Gcc-bugs
mailing list