PR c++/45625 - Template parm name doesn't hide outer class scope's member name
authorDodji Seketeli <dodji@redhat.com>
Thu, 18 Aug 2011 06:44:22 +0000 (06:44 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Thu, 18 Aug 2011 06:44:22 +0000 (08:44 +0200)
commit55715096b51c2cb7e9a9cd03bd562301b7867051
tree5ec23b85c1ce0fb11dd5f2aea800a2ffc8cb265e
parentc96012143a5cd5f589032a6e2ae9526e318cf9ea
PR c++/45625 - Template parm name doesn't hide outer class scope's member name

gcc/cp/

* pt.c (parameter_of_template_p): Handle comparison with DECLs of
template parameters as created by process_template_parm.

gcc/testsuite/

* g++.dg/lookup/hidden-var1.C: New test case.

From-SVN: r177846
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/hidden-var1.C [new file with mode: 0644]