c++/350

lerdsuwa@gcc.gnu.org lerdsuwa@gcc.gnu.org
Sun May 13 03:46:00 GMT 2001


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

From: lerdsuwa@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org, llewelly@dbritsch.dsl.xmission.com,
  nobody@gcc.gnu.org
Cc:  
Subject: Re: c++/350
Date: 13 May 2001 10:36:17 -0000

 Synopsis: out-of-line definitions of specialized template methods rejected.
 
 State-Changed-From-To: analyzed->closed
 State-Changed-By: lerdsuwa
 State-Changed-When: Sun May 13 03:36:17 2001
 State-Changed-Why:
     Not a bug.  According to 14.7.3 p5 of the standard:
     
      ... Definitions of members of an explicitly specialized
      class are defined in the same manner as members of normal
      classes, and not using the explicit specialization syntax.
     
     Thus the 'template <>' is not allowed in the out-of-line
     definition of 'MyClass<int>::MyClass(value_type initial)'.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=350&database=gcc



More information about the Gcc-prs mailing list