diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/pr47589.C')
-rw-r--r-- | gcc/testsuite/g++.dg/pr47589.C | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/pr47589.C b/gcc/testsuite/g++.dg/pr47589.C new file mode 100644 index 0000000..6bc3c80 --- /dev/null +++ b/gcc/testsuite/g++.dg/pr47589.C @@ -0,0 +1,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() { } +}; + |