OSDN Git Service

PR c++/47957
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Mar 2011 15:38:30 +0000 (15:38 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Mar 2011 15:38:30 +0000 (15:38 +0000)
commit933062213b6745e0d12a4075d801c4474144066e
tree17e43344745b397a3dc75f4a2c639f89d10cf21c
parentf657e0fac3c299e89aeb97e48d503af437561784
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170779 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/template3.C [new file with mode: 0644]