This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH to unify
- To: Jason Merrill <jason_merrill at redhat dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Subject: Re: C++ PATCH to unify
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Thu, 14 Jun 2001 11:33:36 -0700
--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