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: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jan 2006 18:05:55 -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 #1 from pinskia at gcc dot gnu dot org 2006-01-23 18:05 -------
3.2.3 gave:
earth:~>~/ia32_linux_gcc3_2/bin/g++ t.cc
t.cc: In function `int main()':
t.cc:12: warning: invalid offsetof from non-POD type `class xxx'; use pointer
to member instead
t.cc:13: warning: invalid offsetof from non-POD type `class xxx'; use pointer
to member instead
Hmm, is this a non POD?
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
GCC build triplet|sparc-sun-solaris2.8 |
GCC host triplet|sparc-sun-solaris2.8 |
GCC target triplet|sparc-sun-solaris2.8 |
Known to fail| |3.2.3 3.3.3 3.4.0 4.0.0
| |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25927