This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Problems with static member templates
- To: Ivan199847 at aol dot com
- Subject: Re: Problems with static member templates
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Sun, 5 Mar 2000 11:16:24 +0100
- CC: gcc-bugs at gcc dot gnu dot org
- References: <0.2bbf083c.25638f48@aol.com>
> Both programs are legal C++ AFAICT; both produced error messages. I
> would appreciate it if you could look into them.
Thanks for your bug report. Your first program is not legal; the construct
T::foo<T>();
should read
T::template foo<T>();
since T is a dependent name.
The mainline compiler (2.96 20000302 (experimental)) accepts your
second version just fine, so the bug appears to be fixed.
Regards,
Martin