// PR c++/32232 template struct A; template struct B {}; template A& operator<<(A&, const B&); template struct A { A& operator<<(A& (*)(A&)); }; template A& foo(A&); extern A c; int main () { c << (1, foo); // { dg-error "no context" } }