2017-06-14 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git] / gcc / testsuite / g++.dg / template / conv11.C
blobb9aadf7b596661eebbd1542a44391650993b49bf
1 int i;
2 struct A
4   template <class T> operator T&() { return i; } // { dg-message "note" }
5 };
7 int main()
9   A().operator int();           // { dg-error "operator int" }
10   // { dg-message "(candidate|mismatched types)" "candidate note" { target *-*-* } .-1 }