diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/memtemp72.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/memtemp72.C | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/memtemp72.C b/gcc/testsuite/g++.old-deja/g++.pt/memtemp72.C new file mode 100644 index 000000000..26bd4bc18 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/memtemp72.C @@ -0,0 +1,17 @@ +// { dg-do assemble } + +template<class P> struct B +{ + template<class T> void f(T& t) { t = T(); } +}; + +enum ptype { t1, t2}; + +struct D : public B<ptype> +{ + void g(double& d) { f(d); } +}; + + +D d; + |