Lines Matching full:default
26 void g(int x, int y = x); // expected-error {{default argument references parameter 'x'}}
28 void g2(int x, int y, int z = x + y); // expected-error {{default argument references parameter 'x'}} expected-error {{default argument references parameter 'y'}}
34 int f(X* x = this); // expected-error{{default argument references 'this'}}
38 // C++ [dcl.fct.default]p6
46 void C::f(int i = 3) // expected-error{{redefinition of default argument}}
55 // C++ [dcl.fct.default]p9
66 int k = j, // expected-error{{default argument references parameter 'j'}}
69 int m); // expected-error{{missing default argument on parameter 'm'}}
85 // Try to verify that default arguments interact properly with copy
116 static void g(int = f()); // expected-error{{use of default argument to function 'f' that is declared later in class 'C2'}}
117 static int f(int = 10); // expected-note{{default argument declared here}}
120 // Make sure we actually parse the default argument for an inline definition