summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/using8.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/lookup/using8.C')
-rw-r--r--gcc/testsuite/g++.dg/lookup/using8.C19
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/lookup/using8.C b/gcc/testsuite/g++.dg/lookup/using8.C
new file mode 100644
index 000000000..26eb4d325
--- /dev/null
+++ b/gcc/testsuite/g++.dg/lookup/using8.C
@@ -0,0 +1,19 @@
+// { dg-do compile }
+// Origin: Bill Clarke <llib at computer dot org>
+// PR c++/11097: using declartion for a converter operator to a nested class
+// in a base type
+
+template <typename T>
+struct A
+{
+ struct Nested {};
+ operator Nested*();
+};
+
+template <typename T>
+struct B : A<T>
+{
+ using A<T>::operator typename A<T>::Nested*;
+};
+
+template struct B<int>;