c++/9057: partial template specialization appears to be ignored

Volker Reichelt reichelt@igpm.rwth-aachen.de
Mon Jan 6 12:56:00 GMT 2003


The following reply was made to PR c++/9057; it has been noted by GNATS.

From: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
To: gcc-gnats@gcc.gnu.org, sneechy@hotmail.com, gcc-bugs@gcc.gnu.org
Cc:  
Subject: Re: c++/9057: partial template specialization appears to be ignored
Date: Mon, 6 Jan 2003 14:51:25 +0100

 Hi,
 
 I think gcc is right and the code is actually ill-formed:
 If you write
 
   template <typename U> struct B<A::i, U> {};
 
 instead of
 
   template <typename U> struct B<i, U> {};
 
 the code compiles fine. Since "i" is actually dependant on the template
 parameter "T", that's how you have to do it IMHO.
 
 I'm not 100% sure, however, so I leave this PR open for the experts.
 
 Regards,
 Volker
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9057
 
 
 



More information about the Gcc-prs mailing list