summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/pr47589.C
blob: 6bc3c80347dc5da3aa7ae2003eef26f4f85f2e45 (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
// PR c++/47589
// { dg-do compile }

struct F
{
    typedef void(*Cb)();

    F(Cb);
};

struct C
{
    template<class D> static void f();
};

template<class D>
struct TF : F
{
    TF() : F(C::f<D>) { }
};

struct DTC : TF<DTC>
{
    DTC() { }
};