------- Comment #43 from mark at codesourcery dot com 2005-10-04 21:14 ------- Subject: Re: [4.1 Regression] push_fields_onto_fieldstack calculates offset incorrectly
jason at redhat dot com wrote: > I was suggesting that instead of making the complete type and base type > essentially copies of one another, that we make the complete type a > wrapper around the base type. Proper alias semantics would fall out of > that. That's a nice idea. It would make life a little more complicated for the front end; when seeing "a.b", you have to generate a double COMPONENT_REF, because the internal representation is a.as_base.b. But, that's a relatively localized change. We could actually do that at gimplification/genericization-time too, I guess, which would be a nice start towards proper lowering. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22488