[Bug c++/27941] offsetof produces possibly erroneous warnings

2008-06-07 Thread tristan_schmelcher at alumni dot uwaterloo dot ca
--- 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

[Bug c++/27941] offsetof produces possibly erroneous warnings

2006-06-07 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-06-07 22:43 --- Both goo and foo are non PODs once you define a constructor which causes the offsetof to be invalid. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added