invalid offsetof from non-POD type

Gabriel Dos Reis gdr@integrable-solutions.net
Tue Apr 22 02:40:00 GMT 2003


John Quigley <johnw@lowestplane.org> writes:

| While it is not standards compliant code, gcc still provides the correct 
| result. 

The key issue is what do you define to be the "correct" result when you
apply offsetof() to a non-POD?  

-- Gaby



More information about the Gcc-bugs mailing list