https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113599

--- Comment #5 from Patrick Palka <ppalka at gcc dot gnu.org> ---
D'oh, sorry for the breakage.

(In reply to Jakub Jelinek from comment #3)
> If no checking is needed, then it could be just datum = build_nop (ptype,
> datum);
> if we don't want folding.

Makes sense to me.  We already checked that the object type types is compatible
with the poniter-to-member class type via lookup_base, so a simple cast without
any extra checking should suffice here.  That's what calling 'convert' instead
of 'cp_convert' would have done too.

Reply via email to