This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] Classify non-POD struct types more or less correctly on AMD64
Mark Kettenis <kettenis@chello.nl> writes:
| The 1996 ANSI C++ draft has the following statement about non-POD-ness:
using an old oudated document may lead to confusion (luckily, that is
not the case here).
| "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. Similarly, a POD-union is an
| aggregate union 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. A POD class is a class that is either a
| POD-struct or a POD-union."
|
| So it doesn't say anything about baseclasses.
Sure it does. A POD-struct ought to be an aggregate class, and an
aggregate class does not have base classes.
-- Gaby