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]

Re: c++/7402: Partial Template Specialization Problem


Synopsis: Partial Template Specialization Problem

State-Changed-From-To: open->closed
State-Changed-By: lerdsuwa
State-Changed-When: Thu Jul 25 07:52:55 2002
State-Changed-Why:
    Not a bug.  The compiler has to be able to deduce what T1 
    is before the partial specialization can be used (according
    to section 14.5.4.1 para 2 of the C++ Standard).  But
    because the following
      typename TemplateParameterGenerator<T1>::Result
    is treated as a non-deduced context (14.8.2.4 p4).
    So T1 can never be deduced and the partial specialization
    is never used.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7402


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