This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] c++/PR 59483, c++/PR 61148
- From: Jason Merrill <jason at redhat dot com>
- To: Ville Voutilainen <ville dot voutilainen at gmail dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 02 Jun 2014 15:56:23 -0400
- Subject: Re: [C++ PATCH] c++/PR 59483, c++/PR 61148
- Authentication-results: sourceware.org; auth=none
- References: <CAFk2RUYphb57rCVJB9VZYnbzoZzoWKE0ADM6OY+-e_Uzda7FXw at mail dot gmail dot com>
On 06/02/2014 03:01 PM, Ville Voutilainen wrote:
+ if (current_nonlambda_class_type ())
protected_ok = protected_accessible_p (decl,
- current_class_type, binfo);
+ current_nonlambda_class_type (),
Let's store the value of current_nonlambda_class_type() in a local
variable rather than call it twice.
+ && DERIVED_FROM_P (scope, current_nonlambda_class_type ()))
+ qualifying_type = current_nonlambda_class_type ();
Here too.
OK with that change.
Jason