Commit 5806e040 by Giovanni Bajo Committed by Wolfgang Bangerth

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
parent 37198bc8
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.
......
// { 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" "" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment