[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc-bugs
Subject: Re: Parse error in pedantic mode passing template args to templates.
From: "Martin v. Loewis" <martin () mira ! isdn ! cs ! tu-berlin ! de>
Date: 1999-05-31 21:19:41
[Download RAW message or body]
> // Subject: Parse error in pedantic mode passing template args to
> templates.
Thanks for your report. Your program is ill-formed, and g++ is right
to detect this error.
> std::list<T>::iterator it; // parse error before `;'
This is a dependent name, which is considered to be an object, unless
it is preceded by the typename keyword.
typename std::list<T>::iterator it;
With that addition, gcc-2.95 19990529 compiles it fine.
Regards,
Martin
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic