OSDN Git Service

2012-12-15 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / pr47589.C
1 // PR c++/47589
2 // { dg-do compile }
3
4 struct F
5 {
6     typedef void(*Cb)();
7
8     F(Cb);
9 };
10
11 struct C
12 {
13     template<class D> static void f();
14 };
15
16 template<class D>
17 struct TF : F
18 {
19     TF() : F(C::f<D>) { }
20 };
21
22 struct DTC : TF<DTC>
23 {
24     DTC() { }
25 };
26