This is the mail archive of the
mailing list for the GCC project.
Re: invalid offsetof from non-POD type
On Tue, 2003-08-12 at 23:21, Fergus Henderson wrote:
> The warning text appears to have been changed.
> The new warning is
> warning ("invalid access to non-static data member `%D' of NULL object",
> warning ("(perhaps the `offsetof' macro was used incorrectly)");
> I think the warning can be disabled using `-Wno-invalid-offsetof'.
OK, can someone check please? I only have gcc 3.2.2, and the
option appears not available there:
> g++ -Wno-invalid-offsetof -ansi -pedantic -shared -I. tut/examples/tut116.cpp -o tut/examples/tut116.so
.. ERROR CODE 0x100
cc1plus: unrecognized option `-Wno-invalid-offsetof'
[with my 34K modem downloading the *binary* of gcc is out of the
question -- forget about the source :[