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/4.6 Regression] Type mismatch when a class derived a same name with template parameter


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

--- Comment #6 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-03-08 15:38:35 UTC ---
Author: dodji
Date: Tue Mar  8 15:38:30 2011
New Revision: 170779

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170779
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:
    trunk/gcc/testsuite/g++.dg/lookup/template3.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/name-lookup.c
    trunk/gcc/testsuite/ChangeLog


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