2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / other / error5.C
blob552f7bf27b5a081772d01020d7e8b9dc15f4184a
1 // { dg-do compile }
2 // Origin: Wolfgang Bangerth <bangerth@ices.utexas.edu>
3 // PR c++/11106: Error message gives partially mangled operator name
5 template <typename T> struct S {
6     struct I {};
7 };
9 template <typename T> struct S2 : S<T> {
10     using S<T>::operator typename S<T>::I*; // { dg-error "operator S\\<int\\>" "" }
13 template struct S2<int>;  // { dg-error "instantiated" "" }