This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11711] Inheritance from partially specialized template does not work
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jul 2003 21:43:50 -0000
- Subject: [Bug c++/11711] Inheritance from partially specialized template does not work
- References: <20030729191159.11711.furnish@lightspeed.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=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>();
}
};