This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: Fix PR 13275
Mark Mitchell <mark@codesourcery.com> writes:
| On Wed, 2003-12-17 at 16:03, Zack Weinberg wrote:
| > Richard Henderson <rth@redhat.com> writes:
| >
| > > On Tue, Dec 16, 2003 at 04:46:51PM -0800, Zack Weinberg wrote:
| > >> "Objected" is too strong a word. "Would prefer __builtin_offsetof but
| > >> is open to demonstrations that this is too hard" is more accurate.
| > >
| > > The following patch appears to work for C. I would recind my
| > > earlier claim that it made the grammar too nasty.
| > >
| > > Given this, does this seem the approach we want to take?
| >
| > I like the looks of this but I wonder what the analogous change over
| > in the C++ front end is going to look like.
|
| The implementation of offsetof I committed meets the requirements
| imposed by the C++ standard.
No, it does not.
| I didn't think any special handling was required for C, but if special
| handling *is* required, the same trick should work.
|
| Gaby objected to the name "__offsetof__".
No, I did not object to the name! I like the name.
I objected to the extension you implemented.
-- Gaby