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] Fix lookup in typedefs of the currently open class (PR c++/33516)


Jakub Jelinek wrote:
+	  if (!COMPLETE_TYPE_P (new_scope)
+	      && TYPE_MAIN_VARIANT (new_scope) != new_scope
+	      && currently_open_class (new_scope))
+	    new_scope = TYPE_MAIN_VARIANT (new_scope);

It seems unnecessary to have so many tests. Specifically the second test doesn't do anything. And I might move the !COMPLETE_TYPE_P test inside currently_open_class.


Jason


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