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: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 16 Nov 2015 01:20:11 +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
--- Comment #32 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to H.J. Lu from comment #31)
> (In reply to Andrew Pinski from comment #30)
> >
> > Isn't an empty record is one without any field decls?
>
> I thin it is language specific.
How so? An record without any field decls is empty and most of the rest of the
middle-end treats it that way.