This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25927] Spurious offsetof warnings with private members
- From: "gdr at cs dot tamu dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jan 2006 22:36:14 -0000
- Subject: [Bug c++/25927] Spurious offsetof warnings with private members
- References: <bug-25927-6420@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from gdr at cs dot tamu dot edu 2006-01-23 22:36 -------
Subject: Re: Spurious offsetof warnings with private members
"rcbilson at plg dot uwaterloo dot ca" <gcc-bugzilla@gcc.gnu.org> writes:
| ------- Comment #2 from rcbilson at plg dot uwaterloo dot ca 2006-01-23
18:28 -------
| (In reply to comment #1)
| > Hmm, is this a non POD?
|
| Quoth the standard (9p4):
| "A POD-struct is an aggregate class
^^^^^^^^
The keyword here is aggregate. See definition in 8.5.1/1.
class xxx is NOT a POD.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25927