This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: template bug?
- To: ddt at crack dot com (Dave Taylor)
- Subject: Re: template bug?
- From: Jason Merrill <jason at cygnus dot com>
- Date: 26 Mar 1998 09:48:26 -0800
- Cc: egcs-bugs at cygnus dot com
- References: <Pine.LNX.3.96.980325183738.29415A-100000.cygnus.egcs.bugs@crack.crack.com>
>>>>> Dave Taylor <ddt@crack.com> writes:
> 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 `;'
You need to say "typename T::inside_class".
Jason