[Bug c++/11711] Inheritance from partially specialized template does not work
pinskia at physics dot uc dot edu
gcc-bugzilla@gcc.gnu.org
Tue Jul 29 21:43: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=11711
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-29 21:43 -------
With icc 6.0 in strict mode (-Xc) icc rejects this after adding this-> or Base< TL<H,T> >:: before
f<1>.
The code is still invalid as f is template but the standard says it is not a template so adding
template in front of f<1> fixes it.
template<class H, class T>
class Derived
: public Base< TL<H,T> >
{
public:
void g()
{
Base< TL<H,T> >::template f<1>(); // or this->template f<1>();
}
};
More information about the Gcc-bugs
mailing list