This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: GCC cannot support local classes together with template.
- From: "Stephen M. Webb" <stephenw dot webb at bregmasoft dot ca>
- To: libstdc++ at gcc dot gnu dot org
- Date: Fri, 13 Mar 2009 08:30:08 -0400
- Subject: Re: GCC cannot support local classes together with template.
- References: <22489866.post@talk.nabble.com>
- Reply-to: stephen dot webb at bregmasoft dot ca
On 13/03/09 00:05, Jim King wrote:
> If we move class PrintOne outside or do not use template function, the
> compilation will succeed.
>
> Is the behavior a bug or as design? Thanks.
[14.3.1.](2) explicitly says using a local name as a template argument is not
allowed.
Follow-up to gcc-help@gcc.gnu.org.
--
Stephen M. Webb
stephen.webb@bregmasoft.ca