This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: GCC cannot support local classes together with template.


Thank you very much.



Stephen M. Webb wrote:
> 
> 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
> 
> 

-- 
View this message in context: http://www.nabble.com/GCC-cannot-support-local-classes-together-with-template.-tp22489866p22495848.html
Sent from the gcc - libstdc++ mailing list archive at Nabble.com.


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