This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12355] parse error on invocation of class static member function template


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]