1 // RUN: %clang_cc1 -fsyntax-only -verify %s 2 // C++0x N2914. 3 4 struct X { 5 int i; 6 static int a; 7 }; 8 9 using X::i; // expected-error{{using declaration can not refer to class member}} 10 using X::s; // expected-error{{using declaration can not refer to class member}} 11 12 void f() { 13 using X::i; // expected-error{{using declaration can not refer to class member}} 14 using X::s; // expected-error{{using declaration can not refer to class member}} 15 } 16