1 /* PR c++/74762 - missing uninitialized warning (C++, parenthesized expr) 2 { dg-do compile } 3 { dg-options "-Wall" } */ 4 5 struct tree2; 6 struct tree_vector2 7 { 8 tree2 *elts[1]; 9 }; 10 11 struct tree2 12 { 13 struct 14 { 15 tree_vector2 vector; 16 } u; 17 }; 18 19 tree2 * const_with_all_bytes_same(tree2 * val)20const_with_all_bytes_same (tree2 *val) 21 { 22 int i; 23 return ((val->u.vector.elts[i])); // { dg-warning "\\\[-Wuninitialized" } 24 } 25