xref: /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.dg/other/error5.C (revision c87b03e512fc05ed6e0222f6fb0ae86264b1d05b)
1 // { dg-do compile }
2 // Origin: Wolfgang Bangerth <bangerth@ices.utexas.edu>
3 // PR c++/11106: Error message gives partially mangled operator name
4 
5 template <typename T> struct S {
6     struct I {};
7 };
8 
9 template <typename T> struct S2 : S<T> {
10     using S<T>::operator typename S<T>::I*;
11 };  // { dg-error "operator S\\<T\\>" "" }
12 
13 template struct S2<int>;  // { dg-error "instantiated" "" }
14