// RUN: %clang_cc1 -verify %s struct A { int x; }; void operator&(A, A); template struct B { int f() { return T::x & 1; // expected-error {{invalid use of non-static data member 'x'}} } }; template struct B; // expected-note {{in instantiation of}}