[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#392327: Acknowledgement (bogus parse error in template argument list; works with 4.0/4.2)



severity 392327 normal
thanks

> $ g++-4.1 -o test test.cpp
> test.cpp:17: error: parse error in template argument list
> ..........
>         ~Stack<Object, Capacity>()

Just to add that rewriting destructor declaration without template
parameters as below makes the sample code compile on all 4.0, 4.1 and
4.2. Since there is a simple workaround, degrading severity to normal.

=============
          ~Stack()
	  {
             .....
=============

Thanks,
	dam
-- 
Damyan Ivanov                           Modular Software Systems
dam@modsoftsys.com
phone +359(2)928-2611, 929-3993              fax +359(2)920-0994
mobile +359(88)856-6067             dam@jabber.minus273.org/Gaim

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: