summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr44535.C
blob: 9126f3997fb109ada1015a3f0151f339ebfb6c56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* { 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;
}