[Bug c++/17000] parse error calling member template function of non-lvalue from within template class member
giovannibajo at libero dot it
gcc-bugzilla@gcc.gnu.org
Thu Aug 12 13:41:00 GMT 2004
------- Additional Comments From giovannibajo at libero dot it 2004-08-12 13:41 -------
No, get_a() is a dependent call, since it's a short form for this->get_a().
Consider what happens if you specialize get_a after the definition of func(),
such as:
template <>
void b<float>::get_a() {}
The compiler is right, you have to specify that "func2" is a member template of
whatever get_a() returned, so you need an explicit "template" keyword.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17000
More information about the Gcc-bugs
mailing list