This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/60336] empty struct value is passed differently in C and C++
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 12 Aug 2014 19:21:17 +0000
- Subject: [Bug c++/60336] empty struct value is passed differently in C and C++
- Auto-submitted: auto-generated
- References: <bug-60336-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60336
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|target |c++
Version|4.8.1 |4.10.0
--- Comment #22 from H.J. Lu <hjl.tools at gmail dot com> ---
This is a target independent issue. Clang++ skips empty struct argument
and g++ passes it. Skip empty struct argument requires middle-end changes.