This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r143314 - in /branches/gcc-4_3-branch/gcc: cp/C...
- From: dodji at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 12 Jan 2009 22:44:13 -0000
- Subject: r143314 - in /branches/gcc-4_3-branch/gcc: cp/C...
Author: dodji
Date: Mon Jan 12 22:44:13 2009
New Revision: 143314
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143314
Log:
gcc/cp/ChangeLog:
2009-01-12 Dodji Seketeli <dodji@redhat.com>
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 <dodji@redhat.com>
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.
* gcc/testsuite/g++.old-deja/g++.benjamin/tem03.C: Adjust testcase.
Added:
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/lookup/hidden-class12.C
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/lookup/hidden-class13.C
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/lookup/hidden-class14.C
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/lookup/hidden-class15.C
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/lookup/hidden-class16.C
Modified:
branches/gcc-4_3-branch/gcc/cp/ChangeLog
branches/gcc-4_3-branch/gcc/cp/cp-tree.h
branches/gcc-4_3-branch/gcc/cp/name-lookup.c
branches/gcc-4_3-branch/gcc/cp/pt.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
branches/gcc-4_3-branch/gcc/testsuite/g++.old-deja/g++.benjamin/tem03.C