* pt.c (lookup_template_class_1): Use ts_global.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@188809
138bc75d-0d04-0410-961f-
82ee72b054a4
+2012-06-19 Jason Merrill <jason@redhat.com>
+
+ PR c++/53599
+ * pt.c (lookup_template_class_1): Use ts_global.
+
2012-06-14 Richard Guenther <rguenther@suse.de>
Backport from mainline
/* A local class. Make sure the decl gets registered properly. */
if (context == current_function_decl)
- pushtag (DECL_NAME (gen_tmpl), t, /*tag_scope=*/ts_current);
+ pushtag (DECL_NAME (gen_tmpl), t, /*tag_scope=*/ts_global);
if (comp_template_args (CLASSTYPE_TI_ARGS (template_type), arglist))
/* This instantiation is another name for the primary
+2012-06-19 Jason Merrill <jason@redhat.com>
+
+ PR c++/53599
+ * g++.dg/template/local7.C: New.
+
2012-06-16 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
Back port from mainline