c++/9754: Error for legal template specialization

lerdsuwa@gcc.gnu.org lerdsuwa@gcc.gnu.org
Fri Feb 21 15:27:00 GMT 2003


Synopsis: Error for legal template specialization

State-Changed-From-To: analyzed->closed
State-Changed-By: lerdsuwa
State-Changed-When: Fri Feb 21 15:27:16 2003
State-Changed-Why:
    Not a bug.  The specialization
    
      template <>
      struct S<int>
      {
         S(int);
      };
    
    is no longer viewed as a template.  So you have to write
    
      S<int>::S(int)
      {
      }
    
    without the 'template <>' prefix.

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



More information about the Gcc-bugs mailing list