Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
conv11.C
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 }
}