From d8ae6d2235ad1bcbdc8ecb7aa0318303a1089804 Mon Sep 17 00:00:00 2001 From: dodji Date: Mon, 12 Jan 2009 22:47:49 +0000 Subject: gcc/cp/ChangeLog: 2009-01-12 Dodji Seketeli PR c++/36019 * pt.c (parameter_of_template_p): New function. * cp-tree.h: Declare it. * name-lookup.c (binding_to_template_parms_of_scope_p): New function. (outer_binding): Take template parameters in account when looking for a name binding. gcc/testsuite/ChangeLog: 2009-01-12 Dodji Seketeli PR c++/36019 * g++.dg/lookup/hidden-class12.C: New test. * g++.dg/lookup/hidden-class13.C: New test. * g++.dg/lookup/hidden-class14.C: New test. * g++.dg/lookup/hidden-class15.C: New test. * g++.dg/lookup/hidden-class16.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143315 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/cp-tree.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/cp/cp-tree.h') diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 9c89d9617a0..718167f0160 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -4603,6 +4603,7 @@ extern bool reregister_specialization (tree, tree, tree); extern tree fold_non_dependent_expr (tree); extern bool explicit_class_specialization_p (tree); extern struct tinst_level *outermost_tinst_level(void); +extern bool parameter_of_template_p (tree, tree); /* in repo.c */ extern void init_repo (void); -- cgit v1.2.1