blob: b9aadf7b596661eebbd1542a44391650993b49bf [file] [log] [blame]
int i;
struct A
{
template <class T> operator T&() { return i; } // { dg-message "note" }
};
int main()
{
A().operator int(); // { dg-error "operator int" }
// { dg-message "(candidate|mismatched types)" "candidate note" { target *-*-* } .-1 }
}