blob: f08e756a3ee0bdea4858f9ba14ee93424c538a86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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 *-*-* } 9 }
}
|