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]
Other format: [Raw text]

Re: [C++ PATCH] c++/PR 59483, c++/PR 61148


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


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