blob: 9126f3997fb109ada1015a3f0151f339ebfb6c56 [file] [log] [blame]
/* { dg-do run } */
namespace FOO {
template <typename T>
class A
{
public:
void Enum();
virtual void OnProv() = 0;
virtual ~A() { }
};
typedef A<char> B;
template<typename T>
void A<T>::Enum ()
{
OnProv ();
}
} // namespace FOO
class C {};
class D: public C, public FOO::B {
public:
void OnProv() {}
};
int main(int argc, char *argv[])
{
D x;
x.Enum();
return 0;
}