This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Whats vrong in example below
- To: egcs at cygnus dot com
- Subject: Whats vrong in example below
- From: Dmitry Samersoff <dms at wplus dot net>
- Date: Wed, 27 Jan 1999 12:34:18 +0300 (MSK)
- Reply-To: dms at wplus dot net
What's vrong in example below?
Message:
test.C: In function `void cllist(X &)':
test.C:9: parse error before `;'
Environment:
gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
FreeBSD woland.wplus.net 2.2.8-RELEASE i386
Example:
#include <list>
class B : public list<int *> {
};
template <class X>
inline void cllist(X& l)
{
X::iterator i;
}
int test()
{
B k;
cllist(k);
}
--
Dmitry Samersoff
DM\S, dms@wplus.net, AIM: Samersoff
http://devnull.wplus.net