re PR c++/47957 (Type mismatch when a class derived a same name with template parameter)
authorDodji Seketeli <dodji@redhat.com>
Tue, 8 Mar 2011 15:38:30 +0000 (15:38 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Tue, 8 Mar 2011 15:38:30 +0000 (16:38 +0100)
commit9ca6556ebc27ab5f8dcd4cbb1354047aa2f81173
tree17e43344745b397a3dc75f4a2c639f89d10cf21c
parent1c2bbb161e777a6f2dc45f152e7f75c60b0fe39e
re PR c++/47957 (Type mismatch when a class derived a same name with template parameter)

PR c++/47957

gcc/cp/

* name-lookup.c (binding_to_template_parms_of_scope_p): Only
consider scopes of primary template definitions.  Adjust comments.

gcc/testsuite/

* g++.dg/lookup/template3.C: New test.

From-SVN: r170779
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/template3.C [new file with mode: 0644]