template bug?

Dave Taylor ddt@crack.com
Wed Mar 25 16:41:00 GMT 1998


The following file:

	template <class T>
	fart(T &a)
	{
		T::inside_class damn;
	}

compiled with "g++ -c t.cc" barfs with

	u.cc: In function `int fart(T &)':
	u.cc:4: parse error before `;'

(This works with gcc 2.7.x)

Any ideas?  Lemme know.  Thx.

	=-ddt->

---------
Dave Taylor, Owner
Crack dot Com, Inc.  http://crack.com




More information about the Gcc-bugs mailing list