2003-06-30 Giovanni Bajo <giovannibajo@libero.it>
PR c++/11106
* g++.dg/other/error5.C: New test.
From-SVN: r68712
+2003-06-30 Giovanni Bajo <giovannibajo@libero.it>
+
+ PR c++/11106
+ * g++.dg/other/error5.C: New test.
+
2003-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gcc.dg/format/gcc_diag-1.c: New test.
--- /dev/null
+// { dg-do compile }
+// Origin: Wolfgang Bangerth <bangerth@ices.utexas.edu>
+// PR c++/11106: Error message gives partially mangled operator name
+
+template <typename T> struct S {
+ struct I {};
+};
+
+template <typename T> struct S2 : S<T> {
+ using S<T>::operator typename S<T>::I*; // { dg-error "operator S\\<T\\>" "" }
+};
+
+template struct S2<int>; // { dg-error "instantiated" "" }