Lines Matching full:static
8 static void sm() {
10 this->x = 0; // expected-error {{invalid use of 'this' outside of a non-static member function}}
11 x = 0; // expected-error {{invalid use of member 'x' in static member function}}
19 x = 0; // expected-error {{use of non-static data member 'x' of 'C' from nested type 'NestedC'}}
21 m(); // expected-error {{call to non-static member function 'm' of 'C' from nested type 'NestedC'}}
28 static int sb : 1; // expected-error {{static member 'sb' cannot be a bit-field}}
29 static int vs;
39 int i = 0; // expected-warning {{in-class initialization of non-static data member is a C++11 extension}}
40 static int si = 0; // expected-error {{non-const static data member must be initialized out of line}}
41 static const NestedC ci = 0; // expected-error {{static data member of type 'const C::NestedC' must be initialized out of line}}
42 static const int nci = vs; // expected-error {{in-class initializer for static data member is not a constant expression}}
43 static const int vi = 0;
44 static const volatile int cvi = 0; // ok, illegal in C++11
45 static const E evi = 0;
61 virtual int viv; // expected-error {{'virtual' can only appear on non-static member functions}}
62 virtual static int vsif(); // expected-error {{'virtual' can only appear on non-static member functions}}
67 static int sx;
74 static const int number = 50;
75 static int arr[number];
80 static int lx;
140 static const int value = 0;
178 static const float x = 5.0f; // expected-warning {{in-class initializer for static data member of type 'const float' is a GNU extension}}
179 static const float y = foo(); // expected-warning {{in-class initializer for static data member of type 'const float' is a GNU extension}} expected-error {{in-class initializer for static data member is not a constant expression}}
191 S::c; // expected-error {{invalid use of non-static data member}}
196 static int const PR9989_Member = sizeof PR9989_Member;