This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/47957] [4.3/4.4/4.5 Regression] Type mismatch when a class derived a same name with template parameter


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

--- Comment #8 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-03-08 21:14:21 UTC ---
Author: dodji
Date: Tue Mar  8 21:14:18 2011
New Revision: 170790

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170790
Log:
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.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/g++.dg/lookup/template3.C
Modified:
    branches/gcc-4_5-branch/gcc/cp/ChangeLog
    branches/gcc-4_5-branch/gcc/cp/name-lookup.c
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]