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]

[C++ PATCH] missing set_class_binding call


This patch adds a set_class_binding call that was missing from the template class definition case.

Brief experimentation shows undetectable difference in performance.

Applied to trunk.

nathan
--
Nathan Sidwell
2017-09-01  Nathan Sidwell  <nathan@acm.org>

	* class.c (finish_struct): Call set_class_bindings for the
	template case too.

Index: class.c
===================================================================
--- class.c	(revision 251604)
+++ class.c	(working copy)
@@ -7188,6 +7188,7 @@ finish_struct (tree t, tree attributes)
       /* COMPLETE_TYPE_P is now true.  */
 
       finish_struct_methods (t);
+      set_class_bindings (t, TYPE_FIELDS (t));
 
       /* We need to emit an error message if this type was used as a parameter
 	 and it is an abstract type, even if it is a template. We construct

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