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 { TFTF19 TF() : F(C::f<D>) { } 20 }; 21 22 struct DTC : TF<DTC> 23 { DTCDTC24 DTC() { } 25 }; 26 27