This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: possible structure layout bug
On Wed, Jun 09, 2004 at 02:06:19PM -0700, Richard Henderson wrote:
> On Wed, Jun 09, 2004 at 09:47:06PM +0100, Andrew Haley wrote:
> > Yeah, but that just raises a new question: what defines a class with a
> > SIMD type member as non-POD?
>
> Actually, isn't inheritence is by definition non-POD?
Nope. If I've got the right bit of the standard:
A POD-struct is an aggregate class that has no non-static data
members of type pointer to member, non-POD-struct, non-POD-union (or
array of such types) or reference, and has no user-defined copy
assignment operator and no user-defined destructor.
Base classes are not listed. This matches how I check in GDB for
classes to pass by reference.
--
Daniel Jacobowitz