OSDN Git Service

2003-06-30 Giovanni Bajo <giovannibajo@libero.it>
authorbangerth <bangerth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Jun 2003 17:07:07 +0000 (17:07 +0000)
committerbangerth <bangerth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Jun 2003 17:07:07 +0000 (17:07 +0000)
        PR c++/11106
        * g++.dg/other/error5.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68712 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/error5.C [new file with mode: 0644]

index 26f239f..b0d13f2 100644 (file)
@@ -1,3 +1,8 @@
+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.
diff --git a/gcc/testsuite/g++.dg/other/error5.C b/gcc/testsuite/g++.dg/other/error5.C
new file mode 100644 (file)
index 0000000..9cde29f
--- /dev/null
@@ -0,0 +1,13 @@
+// { 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" "" }