Lines Matching full:uninitialized
22 // uninitialized.
24 int b = b + 1; // expected-warning {{variable 'b' is uninitialized when used within its own initialization}}
25 int c = (c + c); // expected-warning 2 {{variable 'c' is uninitialized when used within its own initialization}}
26 int e = static_cast<long>(e) + 1; // expected-warning {{variable 'e' is uninitialized when used within its own initialization}}
27 int f = foo(f); // expected-warning {{variable 'f' is uninitialized when used within its own initialization}}
37 int l = k ? l : l; // expected-warning 2{{variable 'l' is uninitialized when used within its own initialization}}
38 int m = 1 + (k ? m : m); // expected-warning 2{{variable 'm' is uninitialized when used within its own initialization}}
39 int n = -n; // expected-warning {{variable 'n' is uninitialized when used within its own initialization}}
40 int o = std::move(o); // expected-warning {{variable 'o' is uninitialized when used within its own initialization}}
41 const int p = std::move(p); // expected-warning {{variable 'p' is uninitialized when used within its own initialization}}
42 int q = moved(std::move(q)); // expected-warning {{variable 'q' is uninitialized when used within its own initialization}}
43 int r = std::move((p ? q : (18, r))); // expected-warning {{variable 'r' is uninitialized when used within its own initialization}}
44 int s = r ?: s; // expected-warning {{variable 's' is uninitialized when used within its own initialization}}
45 int t = t ?: s; // expected-warning {{variable 't' is uninitialized when used within its own initialization}}
46 int u = (foo(u), s); // expected-warning {{variable 'u' is uninitialized when used within its own initialization}}
47 int v = (u += v); // expected-warning {{variable 'v' is uninitialized when used within its own initialization}}
48 int w = (w += 10); // expected-warning {{variable 'w' is uninitialized when used within its own initialization}}
49 int x = x++; // expected-warning {{variable 'x' is uninitialized when used within its own initialization}}
50 int y = ((s ? (y, v) : (77, y))++, sizeof(y)); // expected-warning {{variable 'y' is uninitialized when used within its own initialization}}
51 int z = ++ref(z); // expected-warning {{variable 'z' is uninitialized when used within its own initialization}}
52 int aa = (ref(aa) += 10); // expected-warning {{variable 'aa' is uninitialized when used within its own initialization}}
53 int bb = bb ? x : y; // expected-warning {{variable 'bb' is uninitialized when used within its own initialization}}
57 int b = b + 1; // expected-warning {{variable 'b' is uninitialized when used within its own initialization}}
58 int c = (c + c); // expected-warning {{variable 'c' is uninitialized when used within its own initialization}}
59 int d = ({ d + d ;}); // expected-warning {{variable 'd' is uninitialized when used within its own initialization}}
60 int e = static_cast<long>(e) + 1; // expected-warning {{variable 'e' is uninitialized when used within its own initialization}}
61 int f = foo(f); // expected-warning {{variable 'f' is uninitialized when used within its own initialization}}
71 int l = k ? l : l; // expected-warning {{variable 'l' is uninitialized when used within its own initialization}}
72 int m = 1 + (k ? m : m); // expected-warning {{'m' is uninitialized when used within its own initialization}}
73 int n = -n; // expected-warning {{variable 'n' is uninitialized when used within its own initialization}}
74 int o = std::move(o); // expected-warning {{variable 'o' is uninitialized when used within its own initialization}}
75 const int p = std::move(p); // expected-warning {{variable 'p' is uninitialized when used within its own initialization}}
76 int q = moved(std::move(q)); // expected-warning {{variable 'q' is uninitialized when used within its own initialization}}
77 int r = std::move((p ? q : (18, r))); // expected-warning {{variable 'r' is uninitialized when used within its own initialization}}
78 int s = r ?: s; // expected-warning {{variable 's' is uninitialized when used within its own initialization}}
79 int t = t ?: s; // expected-warning {{variable 't' is uninitialized when used within its own initialization}}
80 int u = (foo(u), s); // expected-warning {{variable 'u' is uninitialized when used within its own initialization}}
81 int v = (u += v); // expected-warning {{variable 'v' is uninitialized when used within its own initialization}}
82 int w = (w += 10); // expected-warning {{variable 'w' is uninitialized when used within its own initialization}}
83 int x = x++; // expected-warning {{variable 'x' is uninitialized when used within its own initialization}}
84 int y = ((s ? (y, v) : (77, y))++, sizeof(y)); // expected-warning {{variable 'y' is uninitialized when used within its own initialization}}
85 int z = ++ref(z); // expected-warning {{variable 'z' is uninitialized when used within its own initialization}}
86 int aa = (ref(aa) += 10); // expected-warning {{variable 'aa' is uninitialized when used within its own initialization}}
87 int bb = bb ? x : y; // expected-warning {{variable 'bb' is uninitialized when used within its own initialization}}
91 int b = b + 1; // expected-warning {{variable 'b' is uninitialized when used within its own initialization}}
92 int c = (c + c); // expected-warning {{variable 'c' is uninitialized when used within its own initialization}}
93 int d = ({ d + d ;}); // expected-warning {{variable 'd' is uninitialized when used within its own initialization}}
94 int e = static_cast<long>(e) + 1; // expected-warning {{variable 'e' is uninitialized when used within its own initialization}}
95 int f = foo(f); // expected-warning {{variable 'f' is uninitialized when used within its own initialization}}
105 int l = k ? l : l; // expected-warning {{variable 'l' is uninitialized when used within its own initialization}}
106 int m = 1 + (k ? m : m); // expected-warning {{'m' is uninitialized when used within its own initialization}}
107 int n = -n; // expected-warning {{variable 'n' is uninitialized when used within its own initialization}}
108 int o = std::move(o); // expected-warning {{variable 'o' is uninitialized when used within its own initialization}}
109 const int p = std::move(p); // expected-warning {{variable 'p' is uninitialized when used within its own initialization}}
110 int q = moved(std::move(q)); // expected-warning {{variable 'q' is uninitialized when used within its own initialization}}
111 int r = std::move((p ? q : (18, r))); // expected-warning {{variable 'r' is uninitialized when used within its own initialization}}
112 int s = r ?: s; // expected-warning {{variable 's' is uninitialized when used within its own initialization}}
113 int t = t ?: s; // expected-warning {{variable 't' is uninitialized when used within its own initialization}}
114 int u = (foo(u), s); // expected-warning {{variable 'u' is uninitialized when used within its own initialization}}
115 int v = (u += v); // expected-warning {{variable 'v' is uninitialized when used within its own initialization}}
116 int w = (w += 10); // expected-warning {{variable 'w' is uninitialized when used within its own initialization}}
117 int x = x++; // expected-warning {{variable 'x' is uninitialized when used within its own initialization}}
118 int y = ((s ? (y, v) : (77, y))++, sizeof(y)); // expected-warning {{variable 'y' is uninitialized when used within its own initialization}}
119 int z = ++ref(z); // expected-warning {{variable 'z' is uninitialized when used within its own initialization}}
120 int aa = (ref(aa) += 10); // expected-warning {{variable 'aa' is uninitialized when used within its own initialization}}
121 int bb = bb ? x : y; // expected-warning {{variable 'bb' is uninitialized when used within its own initialization}}
128 int b = (a, a ?: 2); // expected-warning {{variable 'a' is uninitialized when used here}}
129 int c = (a, a, b, c); // expected-warning {{variable 'c' is uninitialized when used within its own initialization}}
131 int e = (foo(d), e, b); // expected-warning {{variable 'd' is uninitialized when used here}}
133 f = f + 1, 2; // expected-warning {{variable 'f' is uninitialized when used here}}
147 A a{a.*px}; // expected-warning {{variable 'a' is uninitialized when used within its own initialization}}
148 A b = b; // expected-warning {{variable 'b' is uninitialized when used within its own initialization}}
162 b = a + b; // expected-warning {{variable 'b' is uninitialized when used here}}
165 foo(ptr); // expected-warning {{variable 'ptr' is uninitialized when used here}}
177 S(bool (*)[1]) : x(x) {} // expected-warning {{field 'x' is uninitialized when used here}}
178 S(bool (*)[2]) : x(x + 1) {} // expected-warning {{field 'x' is uninitialized when used here}}
179 S(bool (*)[3]) : x(x + x) {} // expected-warning 2{{field 'x' is uninitialized when used here}}
180 S(bool (*)[4]) : x(static_cast<long>(x) + 1) {} // expected-warning {{field 'x' is uninitialized when used here}}
181 S(bool (*)[5]) : x(foo(x)) {} // expected-warning {{field 'x' is uninitialized when used here}}
191 S(int (*)[1]) : x(0), y(x ? y : y) {} // expected-warning 2{{field 'y' is uninitialized when used here}}
192 S(int (*)[2]) : x(0), y(1 + (x ? y : y)) {} // expected-warning 2{{field 'y' is uninitialized when used here}}
193 S(int (*)[3]) : x(-x) {} // expected-warning {{field 'x' is uninitialized when used here}}
194 S(int (*)[4]) : x(std::move(x)) {} // expected-warning {{field 'x' is uninitialized when used here}}
195 S(int (*)[5]) : z(std::move(z)) {} // expected-warning {{field 'z' is uninitialized when used here}}
196 S(int (*)[6]) : x(moved(std::move(x))) {} // expected-warning {{field 'x' is uninitialized when used here}}
197 S(int (*)[7]) : x(0), y(std::move((x ? x : (18, y)))) {} // expected-warning {{field 'y' is uninitialized when used here}}
198 S(int (*)[8]) : x(0), y(x ?: y) {} // expected-warning {{field 'y' is uninitialized when used here}}
199 S(int (*)[9]) : x(0), y(y ?: x) {} // expected-warning {{field 'y' is uninitialized when used here}}
200 S(int (*)[10]) : x(0), y((foo(y), x)) {} // expected-warning {{field 'y' is uninitialized when used here}}
201 S(int (*)[11]) : x(0), y(x += y) {} // expected-warning {{field 'y' is uninitialized when used here}}
202 S(int (*)[12]) : x(x += 10) {} // expected-warning {{field 'x' is uninitialized when used here}}
203 S(int (*)[13]) : x(x++) {} // expected-warning {{field 'x' is uninitialized when used here}}
204 S(int (*)[14]) : x(0), y(((x ? (y, x) : (77, y))++, sizeof(y))) {} // expected-warning {{field 'y' is uninitialized when used here}}
205 S(int (*)[15]) : x(++ref(x)) {} // expected-warning {{field 'x' is uninitialized when used here}}
206 S(int (*)[16]) : x((ref(x) += 10)) {} // expected-warning {{field 'x' is uninitialized when used here}}
207 S(int (*)[17]) : x(0), y(y ? x : x) {} // expected-warning {{field 'y' is uninitialized when used here}}
255 A a11(a11); // expected-warning {{variable 'a11' is uninitialized when used within its own initialization}}
256 A a12(a12.get()); // expected-warning {{variable 'a12' is uninitialized when used within its own initialization}}
257 A a13(a13.num); // expected-warning {{variable 'a13' is uninitialized when used within its own initialization}}
258 A a14 = A(a14); // expected-warning {{variable 'a14' is uninitialized when used within its own initialization}}
259 A a15 = getA(a15.num); // expected-warning {{variable 'a15' is uninitialized when used within its own initialization}}
260 A a16(&a16.num); // expected-warning {{variable 'a16' is uninitialized when used within its own initialization}}
261 A a17(a17.get2()); // expected-warning {{variable 'a17' is uninitialized when used within its own initialization}}
262 A a18 = x ? a18 : a17; // expected-warning {{variable 'a18' is uninitialized when used within its own initialization}}
263 A a19 = getA(x ? a19 : a17); // expected-warning {{variable 'a19' is uninitialized when used within its own initialization}}
264 A a20{a20}; // expected-warning {{variable 'a20' is uninitialized when used within its own initialization}}
265 A a21 = {a21}; // expected-warning {{variable 'a21' is uninitialized when used within its own initialization}}
267 // FIXME: Make the local uninitialized warning consistent with the global
268 // uninitialized checking.
269 A *a22 = new A(a22->count); // expected-warning {{variable 'a22' is uninitialized when used within its own initialization}}
270 A *a23 = new A(a23->ONE); // expected-warning {{variable 'a23' is uninitialized when used within its own initialization}}
271 A *a24 = new A(a24->TWO); // expected-warning {{variable 'a24' is uninitialized when used within its own initialization}}
272 A *a25 = new A(a25->zero()); // expected-warning {{variable 'a25' is uninitialized when used within its own initialization}}
274 uninitialized when used within its own initialization}}
275 A *a27 = new A(a27->get2()); // expected-warning {{variable 'a27' is uninitialized when used within its own initialization}}
276 A *a28 = new A(a28->num); // expected-warning {{variable 'a28' is uninitialized when used within its own initialization}}
278 const A a29(a29); // expected-warning {{variable 'a29' is uninitialized when used within its own initialization}}
279 const A a30 = a30; // expected-warning {{variable 'a30' is uninitialized when used within its own initialization}}
281 A a31 = std::move(a31); // expected-warning {{variable 'a31' is uninitialized when used within its own initialization}}
282 A a32 = moveA(std::move(a32)); // expected-warning {{variable 'a32' is uninitialized when used within its own initialization}}
283 A a33 = A(std::move(a33)); // expected-warning {{variable 'a33' is uninitialized when used within its own initialization}}
284 A a34(std::move(a34)); // expected-warning {{variable 'a34' is uninitialized when used within its own initialization}}
285 A a35 = std::move(x ? a34 : (37, a35)); // expected-warning {{variable 'a35' is uninitialized when used within its own initialization}}
290 A a38({a38}); // expected-warning {{variable 'a38' is uninitialized when used within its own initialization}}
291 A a39 = {a39}; // expected-warning {{variable 'a39' is uninitialized when used within its own initialization}}
292 A a40 = A({a40}); // expected-warning {{variable 'a40' is uninitialized when used within its own initialization}}
294 A a41 = !a41; // expected-warning {{variable 'a41' is uninitialized when used within its own initialization}}
295 A a42 = !(a42); // expected-warning {{variable 'a42' is uninitialized when used within its own initialization}}
296 A a43 = a43 != a42; // expected-warning {{variable 'a43' is uninitialized when used within its own initialization}}
297 A a44 = a43 != a44; // expected-warning {{variable 'a44' is uninitialized when used within its own initialization}}
298 A a45 = a45 != a45; // expected-warning 2{{variable 'a45' is uninitialized when used within its own initialization}}
299 A a46 = 0 != a46; // expected-warning {{variable 'a46' is uninitialized when used within its own initialization}}
301 A a47(a47.set(a47.num)); // expected-warning 2{{variable 'a47' is uninitialized when used within its own initialization}}
302 A a48(a47.set(a48.num)); // expected-warning {{variable 'a48' is uninitialized when used within its own initialization}}
319 A a11(a11); // expected-warning {{variable 'a11' is uninitialized when used within its own initialization}}
320 A a12(a12.get()); // expected-warning {{variable 'a12' is uninitialized when used within its own initialization}}
321 A a13(a13.num); // expected-warning {{variable 'a13' is uninitialized when used within its own initialization}}
322 A a14 = A(a14); // expected-warning {{variable 'a14' is uninitialized when used within its own initialization}}
323 A a15 = getA(a15.num); // expected-warning {{variable 'a15' is uninitialized when used within its own initialization}}
324 A a16(&a16.num); // expected-warning {{variable 'a16' is uninitialized when used within its own initialization}}
325 A a17(a17.get2()); // expected-warning {{variable 'a17' is uninitialized when used within its own initialization}}
326 A a18 = cond ? a18 : a17; // expected-warning {{variable 'a18' is uninitialized when used within its own initialization}}
327 A a19 = getA(cond ? a19 : a17); // expected-warning {{variable 'a19' is uninitialized when used within its own initialization}}
328 A a20{a20}; // expected-warning {{variable 'a20' is uninitialized when used within its own initialization}}
329 A a21 = {a21}; // expected-warning {{variable 'a21' is uninitialized when used within its own initialization}}
336 A *a26 = new A(a26->get()); // expected-warning {{variable 'a26' is uninitialized when used within its own initialization}}
337 A *a27 = new A(a27->get2()); // expected-warning {{variable 'a27' is uninitialized when used within its own initialization}}
338 A *a28 = new A(a28->num); // expected-warning {{variable 'a28' is uninitialized when used within its own initialization}}
340 const A a29(a29); // expected-warning {{variable 'a29' is uninitialized when used within its own initialization}}
341 const A a30 = a30; // expected-warning {{variable 'a30' is uninitialized when used within its own initialization}}
343 A a31 = std::move(a31); // expected-warning {{variable 'a31' is uninitialized when used within its own initialization}}
344 A a32 = moveA(std::move(a32)); // expected-warning {{variable 'a32' is uninitialized when used within its own initialization}}
345 A a33 = A(std::move(a33)); // expected-warning {{variable 'a33' is uninitialized when used within its own initialization}}
346 A a34(std::move(a34)); // expected-warning {{variable 'a34' is uninitialized when used within its own initialization}}
347 A a35 = std::move(x ? a34 : (37, a35)); // expected-warning {{variable 'a35' is uninitialized when used within its own initialization}}
352 A a38({a38}); // expected-warning {{variable 'a38' is uninitialized when used within its own initialization}}
353 A a39 = {a39}; // expected-warning {{variable 'a39' is uninitialized when used within its own initialization}}
354 A a40 = A({a40}); // expected-warning {{variable 'a40' is uninitialized when used within its own initialization}}
356 A a41 = !a41; // expected-warning {{variable 'a41' is uninitialized when used within its own initialization}}
357 A a42 = !(a42); // expected-warning {{variable 'a42' is uninitialized when used within its own initialization}}
358 A a43 = a43 != a42; // expected-warning {{variable 'a43' is uninitialized when used within its own initialization}}
359 A a44 = a43 != a44; // expected-warning {{variable 'a44' is uninitialized when used within its own initialization}}
360 A a45 = a45 != a45; // expected-warning 2{{variable 'a45' is uninitialized when used within its own initialization}}
362 A a46 = 0 != a46; // expected-warning {{variable 'a46' is uninitialized when used within its own initialization}}
364 A a47(a47.set(a47.num)); // expected-warning 2{{variable 'a47' is uninitialized when used within its own initialization}}
365 A a48(a47.set(a48.num)); // expected-warning {{variable 'a48' is uninitialized when used within its own initialization}}
385 T(bool (*)[11]) : a(a) {} // expected-warning {{field 'a' is uninitialized when used here}}
386 T(bool (*)[12]) : a(a.get()) {} // expected-warning {{field 'a' is uninitialized when used here}}
387 T(bool (*)[13]) : a(a.num) {} // expected-warning {{field 'a' is uninitialized when used here}}
388 T(bool (*)[14]) : a(A(a)) {} // expected-warning {{field 'a' is uninitialized when used here}}
389 T(bool (*)[15]) : a(getA(a.num)) {} // expected-warning {{field 'a' is uninitialized when used here}}
390 T(bool (*)[16]) : a(&a.num) {} // expected-warning {{field 'a' is uninitialized when used here}}
391 T(bool (*)[17]) : a(a.get2()) {} // expected-warning {{field 'a' is uninitialized when used here}}
392 T(bool (*)[18]) : a2(cond ? a2 : a) {} // expected-warning {{field 'a2' is uninitialized when used here}}
393 T(bool (*)[19]) : a2(cond ? a2 : a) {} // expected-warning {{field 'a2' is uninitialized when used here}}
394 T(bool (*)[20]) : a{a} {} // expected-warning {{field 'a' is uninitialized when used here}}
395 T(bool (*)[21]) : a({a}) {} // expected-warning {{field 'a' is uninitialized when used here}}
402 T(bool (*)[26]) : ptr_a(new A(ptr_a->get())) {} // expected-warning {{field 'ptr_a' is uninitialized when used here}}
403 T(bool (*)[27]) : ptr_a(new A(ptr_a->get2())) {} // expected-warning {{field 'ptr_a' is uninitialized when used here}}
404 T(bool (*)[28]) : ptr_a(new A(ptr_a->num)) {} // expected-warning {{field 'ptr_a' is uninitialized when used here}}
406 T(bool (*)[29]) : c_a(c_a) {} // expected-warning {{field 'c_a' is uninitialized when used here}}
407 T(bool (*)[30]) : c_a(A(c_a)) {} // expected-warning {{field 'c_a' is uninitialized when used here}}
409 T(bool (*)[31]) : a(std::move(a)) {} // expected-warning {{field 'a' is uninitialized when used here}}
410 T(bool (*)[32]) : a(moveA(std::move(a))) {} // expected-warning {{field 'a' is uninitialized when used here}}
411 T(bool (*)[33]) : a(A(std::move(a))) {} // expected-warning {{field 'a' is uninitialized when used here}}
412 T(bool (*)[34]) : a(A(std::move(a))) {} // expected-warning {{field 'a' is uninitialized when used here}}
413 T(bool (*)[35]) : a2(std::move(x ? a : (37, a2))) {} // expected-warning {{field 'a2' is uninitialized when used here}}
418 T(bool (*)[38]) : a({a}) {} // expected-warning {{field 'a' is uninitialized when used here}}
419 T(bool (*)[39]) : a{a} {} // expected-warning {{field 'a' is uninitialized when used here}}
420 T(bool (*)[40]) : a({a}) {} // expected-warning {{field 'a' is uninitialized when used here}}
422 T(bool (*)[41]) : a(!a) {} // expected-warning {{field 'a' is uninitialized when used here}}
423 T(bool (*)[42]) : a(!(a)) {} // expected-warning {{field 'a' is uninitialized when used here}}
424 T(bool (*)[43]) : a(), a2(a2 != a) {} // expected-warning {{field 'a2' is uninitialized when used here}}
425 T(bool (*)[44]) : a(), a2(a != a2) {} // expected-warning {{field 'a2' is uninitialized when used here}}
426 T(bool (*)[45]) : a(a != a) {} // expected-warning 2{{field 'a' is uninitialized when used here}}
427 T(bool (*)[46]) : a(0 != a) {} // expected-warning {{field 'a' is uninitialized when used here}}
429 T(bool (*)[47]) : a2(a2.set(a2.num)) {} // expected-warning 2{{field 'a2' is uninitialized when used here}}
430 T(bool (*)[48]) : a2(a.set(a2.num)) {} // expected-warning {{field 'a2' is uninitialized when used here}}
464 B b7(b7); // expected-warning {{variable 'b7' is uninitialized when used within its own initialization}}
465 B b8 = getB(b8.x); // expected-warning {{variable 'b8' is uninitialized when used within its own initialization}}
466 B b9 = getB(b9.y); // expected-warning {{variable 'b9' is uninitialized when used within its own initialization}}
467 B b10 = getB(-b10.x); // expected-warning {{variable 'b10' is uninitialized when used within its own initialization}}
477 B* b15 = getPtrB(b15->x); // expected-warning {{variable 'b15' is uninitialized when used within its own initialization}}
478 B* b16 = getPtrB(b16->y); // expected-warning {{variable 'b16' is uninitialized when used within its own initialization}}
481 B b18 = { b18.x + 1, b18.y }; // expected-warning 2{{variable 'b18' is uninitialized when used within its own initialization}}
483 const B b19 = b19; // expected-warning {{variable 'b19' is uninitialized when used within its own initialization}}
484 const B b20(b20); // expected-warning {{variable 'b20' is uninitialized when used within its own initialization}}
486 B b21 = std::move(b21); // expected-warning {{variable 'b21' is uninitialized when used within its own initialization}}
487 B b22 = moveB(std::move(b22)); // expected-warning {{variable 'b22' is uninitialized when used within its own initialization}}
488 B b23 = B(std::move(b23)); // expected-warning {{variable 'b23' is uninitialized when used within its own initialization}}
489 B b24 = std::move(x ? b23 : (18, b24)); // expected-warning {{variable 'b24' is uninitialized when used within its own initialization}}
499 B b7(b7); // expected-warning {{variable 'b7' is uninitialized when used within its own initialization}}
500 B b8 = getB(b8.x); // expected-warning {{variable 'b8' is uninitialized when used within its own initialization}}
501 B b9 = getB(b9.y); // expected-warning {{variable 'b9' is uninitialized when used within its own initialization}}
502 B b10 = getB(-b10.x); // expected-warning {{variable 'b10' is uninitialized when used within its own initialization}}
509 B* b15 = getPtrB(b15->x); // expected-warning {{variable 'b15' is uninitialized when used within its own initialization}}
510 B* b16 = getPtrB(b16->y); // expected-warning {{variable 'b16' is uninitialized when used within its own initialization}}
513 B b18 = { b18.x + 1, b18.y }; // expected-warning 2{{variable 'b18' is uninitialized when used within its own initialization}}
515 const B b19 = b19; // expected-warning {{variable 'b19' is uninitialized when used within its own initialization}}
516 const B b20(b20); // expected-warning {{variable 'b20' is uninitialized when used within its own initialization}}
518 B b21 = std::move(b21); // expected-warning {{variable 'b21' is uninitialized when used within its own initialization}}
519 B b22 = moveB(std::move(b22)); // expected-warning {{variable 'b22' is uninitialized when used within its own initialization}}
520 B b23 = B(std::move(b23)); // expected-warning {{variable 'b23' is uninitialized when used within its own initialization}}
521 B b24 = std::move(x ? b23 : (18, b24)); // expected-warning {{variable 'b24' is uninitialized when used within its own initialization}}
536 U(bool (*)[7]) : b1(b1) {} // expected-warning {{field 'b1' is uninitialized when used here}}
537 U(bool (*)[8]) : b1(getB(b1.x)) {} // expected-warning {{field 'b1' is uninitialized when used here}}
538 U(bool (*)[9]) : b1(getB(b1.y)) {} // expected-warning {{field 'b1' is uninitialized when used here}}
539 U(bool (*)[10]) : b1(getB(-b1.x)) {} // expected-warning {{field 'b1' is uninitialized when used here}}
546 U(bool (*)[15]) : ptr1(getPtrB(ptr1->x)) {} // expected-warning {{field 'ptr1' is uninitialized when used here}}
547 U(bool (*)[16]) : ptr2(getPtrB(ptr2->y)) {} // expected-warning {{field 'ptr2' is uninitialized when used here}}
550 U(bool (*)[18]) : b1 { b1.x + 1, b1.y } {} // expected-warning 2{{field 'b1' is uninitialized when used here}}
552 U(bool (*)[19]) : constb(constb) {} // expected-warning {{field 'constb' is uninitialized when used here}}
553 U(bool (*)[20]) : constb(B(constb)) {} // expected-warning {{field 'constb' is uninitialized when used here}}
555 uninitialized when used here}}
556 U(bool (*)[22]) : b1(moveB(std::move(b1))) {} // expected-warning {{field 'b1' is uninitialized when used here}}
557 U(bool (*)[23]) : b1(B(std::move(b1))) {} // expected-warning {{field 'b1' is uninitialized when used here}}
558 U(bool (*)[24]) : b2(std::move(x ? b1 : (18, b2))) {} // expected-warning {{field 'b2' is uninitialized when used here}}
590 // PR 12325 - this was a false uninitialized value warning due to
606 auto f1 = [] (int x, int y) { int z; return x + y + z; }; // expected-warning{{variable 'z' is uninitialized when used here}} expected-note {{initialize the variable 'z' to silence this warning}}
635 D(char (*)[3]) : c(c.b.a.A3) {} // expected-warning {{field 'c' is uninitialized when used here}}
636 D(char (*)[4]) : c(c.b.a.A4()) {} // expected-warning {{field 'c' is uninitialized when used here}}
649 // uninitialized warning.
650 E(char (*)[1]) : a(a ? b : c) {} // expected-warning {{field 'a' is uninitialized when used here}}
651 E(char (*)[2]) : a(b ? a : a) {} // expected-warning 2{{field 'a' is uninitialized when used here}}
652 E(char (*)[3]) : a(b ? (a) : c) {} // expected-warning {{field 'a' is uninitialized when used here}}
653 E(char (*)[4]) : a(b ? c : (a+c)) {} // expected-warning {{field 'a' is uninitialized when used here}}
656 E(char (*)[6]) : a(a ?: a) {} // expected-warning 2{{field 'a' is uninitialized when used here}}
657 E(char (*)[7]) : a(b ?: a) {} // expected-warning {{field 'a' is uninitialized when used here}}
658 E(char (*)[8]) : a(a ?: c) {} // expected-warning {{field 'a' is uninitialized when used here}}
662 E(char (*)[11]) : a((c + a, a + 1, b)) {} // expected-warning 2{{field 'a' is uninitialized when used here}}
663 E(char (*)[12]) : a((b + c, c, a)) {} // expected-warning {{field 'a' is uninitialized when used here}}
664 E(char (*)[13]) : a((a, a, a, a)) {} // expected-warning {{field 'a' is uninitialized when used here}}
666 E(char (*)[15]) : a(b ?: a) {} // expected-warning {{field 'a' is uninitialized when used here}}
667 E(char (*)[16]) : a(a ?: b) {} // expected-warning {{field 'a' is uninitialized when used here}}
682 G(char (*)[1]) : f1(f1) {} // expected-warning {{field 'f1' is uninitialized when used here}}
686 G(char (*)[4]) : f1(f1.*ptr) {} // expected-warning {{field 'f1' is uninitialized when used here}}
689 G(char (*)[6]) : f3(f3) {} // expected-warning {{field 'f3' is uninitialized when used here}}
690 G(char (*)[7]) : f3(f3->*f_ptr) {} // expected-warning {{field 'f3' is uninitialized when used here}}
691 G(char (*)[8]) : f3(new F(f3->*ptr)) {} // expected-warning {{field 'f3' is uninitialized when used here}}
695 H() : a(a) {} // expected-warning {{field 'a' is uninitialized when used here}}
702 static int b = b + 1; // expected-warning {{variable 'b' is uninitialized when used within its own initialization}}
703 static int c = (c + c); // expected-warning 2{{variable 'c' is uninitialized when used within its own initialization}}
704 static int e = static_cast<long>(e) + 1; // expected-warning {{variable 'e' is uninitialized when used within its own initialization}}
705 static int f = foo(f); // expected-warning {{variable 'f' is uninitialized when used within its own initialization}}
716 static int l = k ? l : l; // expected-warning 2{{variable 'l' is uninitialized when used within its own initialization}}
717 static int m = 1 + (k ? m : m); // expected-warning 2{{variable 'm' is uninitialized when used within its own initialization}}
718 static int n = -n; // expected-warning {{variable 'n' is uninitialized when used within its own initialization}}
719 static int o = std::move(o); // expected-warning {{variable 'o' is uninitialized when used within its own initialization}}
720 static const int p = std::move(p); // expected-warning {{variable 'p' is uninitialized when used within its own initialization}}
721 static int q = moved(std::move(q)); // expected-warning {{variable 'q' is uninitialized when used within its own initialization}}
722 static int r = std::move((p ? q : (18, r))); // expected-warning {{variable 'r' is uninitialized when used within its own initialization}}
723 static int s = r ?: s; // expected-warning {{variable 's' is uninitialized when used within its own initialization}}
724 static int t = t ?: s; // expected-warning {{variable 't' is uninitialized when used within its own initialization}}
725 static int u = (foo(u), s); // expected-warning {{variable 'u' is uninitialized when used within its own initialization}}
726 static int v = (u += v); // expected-warning {{variable 'v' is uninitialized when used within its own initialization}}
727 static int w = (w += 10); // expected-warning {{variable 'w' is uninitialized when used within its own initialization}}
728 static int x = x++; // expected-warning {{variable 'x' is uninitialized when used within its own initialization}}
729 static int y = ((s ? (y, v) : (77, y))++, sizeof(y)); // expected-warning {{variable 'y' is uninitialized when used within its own initialization}}
730 static int z = ++ref(z); // expected-warning {{variable 'z' is uninitialized when used within its own initialization}}
731 static int aa = (ref(aa) += 10); // expected-warning {{variable 'aa' is uninitialized when used within its own initialization}}
732 static int bb = bb ? x : y; // expected-warning {{variable 'bb' is uninitialized when used within its own initialization}}
808 S() : a(a + 1) {} // expected-warning{{field 'a' is uninitialized when used here}}
819 U() : a(b + 1), b(a + 1) {} // expected-warning{{field 'b' is uninitialized when used here}}
874 A a1 = a1 = makeA(); // expected-warning{{variable 'a1' is uninitialized when used within its own initialization}}
875 A a2 = a2 == a1; // expected-warning{{variable 'a2' is uninitialized when used within its own initialization}}
876 A a3 = a2 == a3; // expected-warning{{variable 'a3' is uninitialized when used within its own initialization}}
888 A a1([=] { return a1.x; }); // expected-warning{{variable 'a1' is uninitialized when used within its own initialization}}
911 B(char (*)[1]) : a(a) {} // expected-warning {{uninitialized}}
912 B(char (*)[2]) : a(a.get()) {} // expected-warning {{uninitialized}}
914 B(char (*)[4]) : a(a.copy(a)) {} // expected-warning {{uninitialized}}
919 B(char (*)[9]) : a(normal(a)) {} // expected-warning {{uninitialized}}
920 B(char (*)[10]) : a(std::move(a)) {} // expected-warning {{uninitialized}}
921 B(char (*)[11]) : a(A(std::move(a))) {} // expected-warning {{uninitialized}}
922 B(char (*)[12]) : a(rref(std::move(a))) {} // expected-warning {{uninitialized}}
923 B(char (*)[13]) : a(std::move(x ? a : (25, a))) {} // expected-warning 2{{uninitialized}}
927 A a1 = a1; // expected-warning {{uninitialized}}
928 A a2 = a2.get(); // expected-warning {{uninitialized}}
930 A a4 = a4.copy(a4); // expected-warning {{uninitialized}}
935 A a9 = normal(a9); // expected-warning {{uninitialized}}
936 const A a10 = a10; // expected-warning {{uninitialized}}
937 A a11 = std::move(a11); // expected-warning {{uninitialized}}
938 A a12 = A(std::move(a12)); // expected-warning {{uninitialized}}
939 A a13 = rref(std::move(a13)); // expected-warning {{uninitialized}}
940 A a14 = std::move(x ? a13 : (22, a14)); // expected-warning {{uninitialized}}
943 A a1 = a1; // expected-warning {{uninitialized}}
944 A a2 = a2.get(); // expected-warning {{uninitialized}}
946 A a4 = a4.copy(a4); // expected-warning {{uninitialized}}
951 A a9 = normal(a9); // expected-warning {{uninitialized}}
952 const A a10 = a10; // expected-warning {{uninitialized}}
953 A a11 = std::move(a11); // expected-warning {{uninitialized}}
954 A a12 = A(std::move(a12)); // expected-warning {{uninitialized}}
955 A a13 = rref(std::move(a13)); // expected-warning {{uninitialized}}
956 A a14 = std::move(x ? a13 : (22, a14)); // expected-warning {{uninitialized}}
981 A(char (*)[1]) : b(a) {} // expected-warning{{field 'a' is uninitialized when used here}}
982 A(char (*)[2]) : a(b) {} // expected-warning{{field 'b' is uninitialized when used here}}
986 int a = b; // expected-warning{{field 'b' is uninitialized when used here}}
993 int b = a; // expected-warning{{field 'a' is uninitialized when used here}}
1018 F(char (*)[1]) : a(e.get()) {} // expected-warning{{field 'e' is uninitialized when used here}}
1020 F(char (*)[3]) : e(a) {} // expected-warning{{field 'a' is uninitialized when used here}}
1022 F(char (*)[5]) : e(b) {} // expected-warning{{field 'b' is uninitialized when used here}}
1023 F(char (*)[6]) : e(b), b(4) {} // expected-warning{{field 'b' is uninitialized when used here}}
1056 int b = b + 5; // expected-warning{{field 'b' is uninitialized when used here}}
1065 N() : b(a) { } // expected-warning{{field 'a' is uninitialized when used here}}
1097 // FIXME: Use the CFG-based analysis to give a sometimes uninitialized
1103 : x(b ? (y = 5) : (1 + y)), // expected-warning{{field 'y' is uninitialized when used here}}
1106 : x(!b ? (1 + y) : (y = 5)), // expected-warning{{field 'y' is uninitialized when used here}}
1119 B() : A(x) {} // expected-warning{{field 'x' is uninitialized when used here}}
1135 // expected-warning@-1 {{field 'x' is uninitialized when used here}}
1137 // expected-warning@-1 {{field 'x' is uninitialized when used here}}
1151 A a2{a2.i1 + 2}; // expected-warning{{uninitialized}}
1152 A a3 = {a3.i1 + 2}; // expected-warning{{uninitialized}}
1153 A a4 = A{a4.i2 + 2}; // expected-warning{{uninitialized}}
1157 B b3 = { b3.a1 }; // expected-warning{{uninitialized}}
1158 B b4 = { {}, b4.a2} ; // expected-warning{{uninitialized}}
1159 B b5 = { b5.a2 }; // expected-warning{{uninitialized}}
1161 B b6 = { {b6.a1.i1} }; // expected-warning{{uninitialized}}
1166 B b10 = { {b10.a1.i2} }; // expected-warning{{uninitialized}}
1167 B b11 = { {0, b11.a1.i2} }; // expected-warning{{uninitialized}}
1171 B b14 = { {b14.a2.i1} }; // expected-warning{{uninitialized}}
1172 B b15 = { {0, b15.a2.i1} }; // expected-warning{{uninitialized}}
1173 B b16 = { {}, {b16.a2.i1} }; // expected-warning{{uninitialized}}
1176 B b18 = { {b18.a2.i2} }; // expected-warning{{uninitialized}}
1177 B b19 = { {0, b19.a2.i2} }; // expected-warning{{uninitialized}}
1178 B b20 = { {}, {b20.a2.i2} }; // expected-warning{{uninitialized}}
1179 B b21 = { {}, {0, b21.a2.i2} }; // expected-warning{{uninitialized}}
1186 C c3 = { c3.b, num }; // expected-warning{{uninitialized}}
1187 C c4 = { 0, c4.b, 0 }; // expected-warning{{uninitialized}}
1189 C c6 = { c6.b, num, 0 }; // expected-warning{{uninitialized}}
1195 D d3 = { d3.b, num }; // expected-warning{{uninitialized}}
1200 A a2{a2.i1 + 2}; // expected-warning{{uninitialized}}
1201 A a3 = {a3.i1 + 2}; // expected-warning{{uninitialized}}
1202 A a4 = A{a4.i2 + 2}; // expected-warning{{uninitialized}}
1206 a2{a2.i1 + 2}, // expected-warning{{uninitialized}}
1207 a3{a3.i1 + 2}, // expected-warning{{uninitialized}}
1208 a4{a4.i2 + 2} // expected-warning{{uninitialized}}
1215 B b3 = { b3.a1 }; // expected-warning{{uninitialized}}
1216 B b4 = { {}, b4.a2} ; // expected-warning{{uninitialized}}
1217 B b5 = { b5.a2 }; // expected-warning{{uninitialized}}
1219 B b6 = { {b6.a1.i1} }; // expected-warning{{uninitialized}}
1224 B b10 = { {b10.a1.i2} }; // expected-warning{{uninitialized}}
1225 B b11 = { {0, b11.a1.i2} }; // expected-warning{{uninitialized}}
1229 B b14 = { {b14.a2.i1} }; // expected-warning{{uninitialized}}
1230 B b15 = { {0, b15.a2.i1} }; // expected-warning{{uninitialized}}
1231 B b16 = { {}, {b16.a2.i1} }; // expected-warning{{uninitialized}}
1234 B b18 = { {b18.a2.i2} }; // expected-warning{{uninitialized}}
1235 B b19 = { {0, b19.a2.i2} }; // expected-warning{{uninitialized}}
1236 B b20 = { {}, {b20.a2.i2} }; // expected-warning{{uninitialized}}
1237 B b21 = { {}, {0, b21.a2.i2} }; // expected-warning{{uninitialized}}
1244 b3{ b3.a1 }, // expected-warning{{uninitialized}}
1245 b4{ {}, b4.a2}, // expected-warning{{uninitialized}}
1246 b5{ b5.a2 }, // expected-warning{{uninitialized}}
1248 b6{ {b6.a1.i1} }, // expected-warning{{uninitialized}}
1253 b10{ {b10.a1.i2} }, // expected-warning{{uninitialized}}
1254 b11{ {0, b11.a1.i2} }, // expected-warning{{uninitialized}}
1258 b14{ {b14.a2.i1} }, // expected-warning{{uninitialized}}
1259 b15{ {0, b15.a2.i1} }, // expected-warning{{uninitialized}}
1260 b16{ {}, {b16.a2.i1} }, // expected-warning{{uninitialized}}
1263 b18{ {b18.a2.i2} }, // expected-warning{{uninitialized}}
1264 b19{ {0, b19.a2.i2} }, // expected-warning{{uninitialized}}
1265 b20{ {}, {b20.a2.i2} }, // expected-warning{{uninitialized}}
1266 b21{ {}, {0, b21.a2.i2} }, // expected-warning{{uninitialized}}
1275 C c3 = { c3.b, num }; // expected-warning{{uninitialized}}
1276 C c4 = { 0, c4.b, 0 }; // expected-warning{{uninitialized}}
1278 C c6 = { c6.b, num, 0 }; // expected-warning{{uninitialized}}
1285 c3{ c3.b, num }, // expected-warning{{uninitialized}}
1286 c4{ 0, c4.b, 0 }, // expected-warning{{uninitialized}}
1288 c6{ c6.b, num, 0 }, // expected-warning{{uninitialized}}
1296 D d3 = { d3.b, num }; // expected-warning{{uninitialized}}
1301 d3{ d3.b, num } // expected-warning{{uninitialized}}
1326 // foo is uninitialized here, but class B is never instantiated.
1338 // expected-warning@-1 {{field 'foo' is uninitialized when used here}}
1365 // expected-warning@-1 {{base class 'base_class_access::A' is uninitialized when used here to access 'base_class_access::A::i'}}
1368 // expected-warning@-1 {{base_class_access::A' is uninitialized when used here to access 'base_class_access::A::foo'}}
1380 // expected-warning@-1 {{base class 'base_class_access::A' is uninitialized when used here to access 'base_class_access::A::i'}}
1383 // expected-warning@-1 {{base_class_access::A' is uninitialized when used here to access 'base_class_access::A::foo'}}
1402 int a1 = std::move(a1); // expected-warning {{uninitialized}}
1403 int a2 = value::move(a2); // expected-warning {{uninitialized}}
1404 int a3 = value::notmove(a3); // expected-warning {{uninitialized}}
1411 int a1 = std::move(a1); // expected-warning {{uninitialized}}
1412 int a2 = value::move(a2); // expected-warning {{uninitialized}}
1413 int a3 = value::notmove(a3); // expected-warning {{uninitialized}}
1422 uninitialized}}
1423 A(int (*) [2]) : a(value::move(a)) {} // expected-warning {{uninitialized}}
1424 A(int (*) [3]) : a(value::notmove(a)) {} // expected-warning {{uninitialized}}