This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/25927] Spurious offsetof warnings with private members



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]