[PATCH] Fix PR c++/34059: ICE with invalid base type for class member

Mark Mitchell mark@codesourcery.com
Mon Dec 10 20:29:00 GMT 2007


Simon Martin wrote:

> The problem is that 'build_class_member_access_expr' computes the scope
> of the member being processed from the BINFO_TYPE of its BASELINK_BINFO
> (i.e. B) instead of this of its BASELINK_ACCESS_BINFO (i.e. C). As a
> result, the expression is accepted, and there is an ICE when converting
> the B instance into an instance of C. The attached patch fixes this.
> 
> I have successfully regtested it on x86_64-apple-darwin-9 with no new
> regression. Is it OK for the mainline? For 4.2?

Thank you for working on this!  Yes, this is OK for mainline and for 4.2.

> :ADDPATCH c++:

:REVIEWMAIL: OK

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list