[Bug c++/12355] parse error on invocation of class static member function template
notbob at tessellation dot com
gcc-bugzilla@gcc.gnu.org
Sun Sep 21 22:06:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12355
------- Additional Comments From notbob at tessellation dot com 2003-09-21 21:46 -------
Subject: Re: parse error on invocation of class static member function template
> The code is invalid you have to tell the compiler, bar is a template:
> template <typename A, typename B>
> class C
> {
> public:
> typedef typename B::result_type result_type;
> void foo(void)
> {
> int i = A::template bar<result_type>();
> }
> };
>
> Yes the error message is bad but I think there was another bug already for
that.
Thank you for your help.
Robert
More information about the Gcc-bugs
mailing list