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: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Sep 2003 20:49:25 -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
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-09-21 20:49 -------
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.