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++/27941] offsetof produces possibly erroneous warnings



------- Comment #2 from tristan_schmelcher at alumni dot uwaterloo dot ca  2008-06-08 01:41 -------
Just a note for posterity:

Using offsetof in this particular case (and many others) will work in G++, but
the standard doesn't require that, so in theory it's not portable. That's why
G++ prints a warning. You can suppress it with -Wno-invalid-offsetof.


-- 

tristan_schmelcher at alumni dot uwaterloo dot ca changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tristan_schmelcher at alumni
                   |                            |dot uwaterloo dot ca


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27941


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