[C++ PATCH]: Fix bug 4379

Mark Mitchell mark@codesourcery.com
Mon Dec 31 09:22:00 GMT 2001



--On Monday, December 31, 2001 01:51:16 PM +0000 Nathan Sidwell 
<nathan@codesourcery.com> wrote:

> Hi,
> this fixes bug 4379, and a few other pointer to member data problems.
>
> We were creating pointer to members for data members with reference
> type. Also, we'd create pointers to data member on things like
> &(C::m), which isn't one. If m is static, that is a plain pointer,
> if m is non-static and we are in a member function of C, that is a pointer
> to this->C::m, otherwise it is ill-formed.
>
> built & tested on i686-pc-linux-gnu, ok?

Yes.  This is already fixed on the new parser branch, but in a different
way.

The merge will be a joy.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com



More information about the Gcc-patches mailing list