On 07/17/2009 03:26 PM, Richard Guenther wrote:
Where can this be fixed?  I currently have a hack to not strip
restrict qualifiers in decay_conversion, but that feels a little
too hackish.  What's the important piece of decay_conversion
that is necessary for indirect refs?

Well, I'd start by making a function called something like "cv_unqualified" that strips only cv-quals from the type, and look at replacing a lot of uses of TYPE_MAIN_VARIANT with that.

I imagine that removing the cv-quals is important for overload resolution, but feel free to try removing that and see what breaks. :)

Jason

Reply via email to