[Bug c++/60336] empty struct value is passed differently in C and C++
hjl.tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sun Nov 15 11:35:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60336
--- Comment #25 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Andrew Pinski from comment #23)
> (In reply to H.J. Lu from comment #22)
> > This is a target independent issue. Clang++ skips empty struct argument
> > and g++ passes it. Skip empty struct argument requires middle-end changes.
>
> Except in c++, the struct is non zero in size.
I think empty struct should be considered as zero size for
argument passing, like clang does. This bug causes PR 67239.
More information about the Gcc-bugs
mailing list