+2011-03-08 Dodji Seketeli <dodji@redhat.com>
+
+ * name-lookup.c (binding_to_template_parms_of_scope_p): Only
+ consider scopes of primary template definitions. Adjust comments.
+
2011-03-07 Jason Merrill <jason@redhat.com>
PR c++/48003
}
/* Subroutine of outer_binding.
- Returns TRUE if BINDING is a binding to a template parameter of SCOPE,
- FALSE otherwise. */
+
+ Returns TRUE if BINDING is a binding to a template parameter of
+ SCOPE. In that case SCOPE is the scope of a primary template
+ parameter -- in the sense of G++, i.e, a template that has its own
+ template header.
+
+ Returns FALSE otherwise. */
static bool
binding_to_template_parms_of_scope_p (cxx_binding *binding,
return (scope
&& scope->this_entity
&& get_template_info (scope->this_entity)
+ && PRIMARY_TEMPLATE_P (TI_TEMPLATE
+ (get_template_info (scope->this_entity)))
&& parameter_of_template_p (binding_value,
TI_TEMPLATE (get_template_info \
(scope->this_entity))));
+2011-03-08 Dodji Seketeli <dodji@redhat.com>
+
+ * g++.dg/lookup/template3.C: New test.
+
2011-03-08 Kai Tietz <ktietz@redhat.com>
* g++.dg/tree-ssa/pr21082.C: Use __INTPTR_TYPE__ instead of