1 // Red Hat bugzilla 65035
2 // Bug: We were encoding the name of the instantiation as 'operator int'
3 // rather than 'operator T'.
4 // { dg-do compile }
5 
6 struct C {
7     template <class T>
8     operator T ();
9 };
10 
11 template <class T>
T()12 C::operator T () { return 0; }
13 
14 template C::operator int ();
15 
16 // { dg-final { scan-assembler _ZN1CcvT_IiEEv } }
17