blob: d366eda5d8f7dc4f2cba3e12a46400372bd6c3e8 [file] [log] [blame]
// { dg-do assemble }
// GROUPS passed templates
template <class T>
class T_Base
{};
template <class T>
class T_Derived
: public T_Base<T>
{};
class Base
{
public:
Base (float name);
};
class Derived
: public Base
{
private:
T_Base<int>* data_; // Fix (1): Change date_ from T_Base<int>* to T_Derived<int>*
public:
Derived (float name);
};
Derived::
Derived (float name)
: Base(name),
data_(new T_Derived<int>())
{}