This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12355] parse error on invocation of class static member function template
- From: "notbob at tessellation dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Sep 2003 21:46:15 -0000
- Subject: [Bug c++/12355] parse error on invocation of class static member function template
- References: <20030921202105.12355.notbob@tessellation.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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