This is the mail archive of the gcc-patches@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]

Re: C++ PATCH to unify




--On Thursday, June 14, 2001 01:02:34 PM +0100 Jason Merrill 
<jason_merrill@redhat.com> wrote:

> This patch fixes two regressions from 2.95 involving a deduced type with
> greater cv-qualification than the argument type.
>
> First, we were failing for pointers to members because the OFFSET_TYPE
> wasn't considered const; I've fixed this by avoiding the recursion there.
> In the future, we should do away with the POINTER_TYPE to OFFSET_TYPE
> nonsense.
>
> Second, we were checking the cv-quals on the argument type, when it should
> have been the parameter type.
>
> Tests below.  Tested i686-pc-linux-gnu, applied to trunk.  This should
> certainly go into 3.0.1, but probably not 3.0 at this point.  Mark, do you
> agree?

Yes, on all points, including that we should fix the two-level nonsense.

Please remember to install it on the branch once the release is done.

Thanks!

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


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