This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Fix 21799
Nathan Sidwell <nathan@codesourcery.com> wrote:
>> Well you're special casing method_type. The correct fix would be to
encode
>> the CV qualification within the METHOD_TYPE instead of within the "this"
>> pointer in the arguments. If we did this, we would not need any special
>> case.
>
> true, but that'd be a bigger change I wouldn't want to push into 4.0. I'm
> not immediately sure how not having the cvquals on the arguments will
affect
> argument passing promotions.
In fact, I'd have cvquals *both* on the METHOD_TYPE *and* the this pointer.
Sorry if my previous mail was confusing in this regard. I'd expect this
change to be relatively trivial (probably in the same order of the patch you
just committed).
--
Giovanni Bajo