This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: The C++ FE drops qualifiers on pointer dereference


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]