]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/51641 - Lookup finds enclosing class member instead of template parameter
authorDodji Seketeli <dodji@redhat.com>
Mon, 30 Jan 2012 14:26:12 +0000 (14:26 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Mon, 30 Jan 2012 14:26:12 +0000 (15:26 +0100)
commit12e95d87efb8a7a18a247fdec11369948f8e2b10
tree6fa1c59809d4ba0642ed4689478aa521b88c87d1
parent2026d51a4165a6eef50a80fc3370490d5e5ee442
PR c++/51641 - Lookup finds enclosing class member instead of template parameter

gcc/cp/

PR c++/51641
* cp-tree.h (template_type_parameter_p): Declare new function.
(parameter_of_template_p): Remove
* pt.c (template_type_parameter_p): Define new function.
(parameter_of_template_p): Remove.
* name-lookup.c (binding_to_template_parms_of_scope_p): Don't rely
on parameter_of_template_p anymore.  Compare the level of the
template parameter to the depth of the template.

gcc/testsuite/

PR c++/51641
* g++.dg/lookup/hidden-class17.C: New test.

From-SVN: r183726
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/name-lookup.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/hidden-class17.C [new file with mode: 0644]