Home | History | Annotate | Download | only in SemaCXX

Lines Matching full:argument

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'}}
46 void C::f(int i = 3) // expected-error{{redefinition of default argument}}
66 int k = j, // expected-error{{default argument references parameter 'j'}}
69 int m); // expected-error{{missing default argument on parameter 'm'}}
109 // expected-note{{passing argument to parameter 'z' here}}
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