re PR c++/11106 (Error message gives partially mangled operator name)

2003-06-30  Giovanni Bajo <giovannibajo@libero.it>

        PR c++/11106
        * g++.dg/other/error5.C: New test.

From-SVN: r68712
This commit is contained in:
Giovanni Bajo 2003-06-30 19:07:07 +02:00 committed by Wolfgang Bangerth
parent 37198bc85c
commit 5806e0404c
2 changed files with 18 additions and 0 deletions

View 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.

View File

@ -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" "" }