invalid offsetof from non-POD type

Matt Austern austern@apple.com
Wed Aug 13 20:59:00 GMT 2003


On Tuesday, August 12, 2003, at 02:22  PM, skaller wrote:

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

I added this option three months ago.  It will appear in 3.4.

			--Matt



More information about the Gcc mailing list