This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: invalid offsetof from non-POD type
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: John Quigley <johnw at lowestplane dot org>
- Cc: gcc at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
- Date: 22 Apr 2003 04:34:28 +0200
- Subject: Re: invalid offsetof from non-POD type
- Organization: Integrable Solutions
- References: <200304202211.03599.johnw@lowestplane.org><m3smscklzz.fsf@uniton.integrable-solutions.net><200304211859.55659.johnw@lowestplane.org>
John Quigley <johnw at lowestplane dot 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