blob: e0a3e5f46edab32e6ec6fb6000da60377d5bed72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
class C
{
template<typename U>
operator U(); // { dg-message "note" }
};
int fn (C c)
{
return C::operator float(c); // { dg-error "operator float.C" }
// { dg-message "candidate" "candidate note" { target *-*-* } 9 }
}
|