OSDN Git Service

/cp
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / conv11.C
1 int i;
2 struct A
3 {
4   template <class T> operator T&() { return i; } // { dg-message "note" }
5 };
6
7 int main()
8 {
9   A().operator int();           // { dg-error "operator int" }
10   // { dg-message "candidate" "candidate note" { target *-*-* } 9 }
11 }