OSDN Git Service

/cp
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / overload9.C
1 // PR c++/32232
2
3 template <typename T> struct A;
4 template <typename T> struct B {};
5 template <typename T> A<T>& operator<<(A<T>&, const B<T>&);
6
7 template <typename T>
8 struct A 
9 {
10   A<T>& operator<<(A<T>& (*)(A<T>&));
11 };
12
13 template <typename T> A<T>& foo(A<T>&);
14 extern A<char> c;
15
16 int main () {
17   c << (1, foo); // { dg-error "no context" }
18 }