invalid offsetof from non-POD type
skaller
skaller@ozemail.com.au
Tue Aug 12 22:05:00 GMT 2003
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",
> member);
> 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 :[
More information about the Gcc
mailing list