[Bug c++/36019] [4.2/4.3/4.4 Regression] template parameter does not hide class name

dodji at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Jan 12 22:44:00 GMT 2009



------- Comment #6 from dodji at gcc dot gnu dot org  2009-01-12 22:44 -------
Subject: Bug 36019

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


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36019



More information about the Gcc-bugs mailing list