[Bug target/60336] empty struct value is passed differently in C and C++

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Feb 26 19:55:00 GMT 2014


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

--- Comment #13 from H.J. Lu <hjl.tools at gmail dot com> ---
Passing

struct dummy { };

is still odd for g++.  It is supposed to have a single member of type char,
which should be passed in register, not on stack.



More information about the Gcc-bugs mailing list