public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [C++ PATCH] missing set_class_binding call
@ 2017-09-01 18:12 Nathan Sidwell
  0 siblings, 0 replies; only message in thread
From: Nathan Sidwell @ 2017-09-01 18:12 UTC (permalink / raw)
  To: GCC Patches

[-- Attachment #1: Type: text/plain, Size: 215 bytes --]

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

[-- Attachment #2: bind.diff --]
[-- Type: text/x-patch, Size: 608 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-09-01 18:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-01 18:12 [C++ PATCH] missing set_class_binding call Nathan Sidwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).