aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/compat/eh/template1.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/compat/eh/template1.h')
-rw-r--r--gcc/testsuite/g++.dg/compat/eh/template1.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/compat/eh/template1.h b/gcc/testsuite/g++.dg/compat/eh/template1.h
new file mode 100644
index 00000000000..93999a11d49
--- /dev/null
+++ b/gcc/testsuite/g++.dg/compat/eh/template1.h
@@ -0,0 +1,15 @@
+class A {};
+
+template <class T>
+struct B
+{
+ typedef A E;
+};
+
+template <class T>
+struct C
+{
+ typedef B<T> D;
+ typedef typename D::E E;
+ void f() throw(E);
+};