This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Whats vrong in example below


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


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