new file mode 100644
@@ -0,0 +1,15 @@
+/* { dg-do compile } */
+/* { dg-options "-O -Wuninitialized" } */
+
+static void foo(int dim,float _Complex f0[])
+{
+ int d;
+ f0[0] -= 3.14; /* { dg-bogus "uninitialized" } */
+ for (d = 0; d < dim; ++d) f0[0] += 3.14;
+}
+void bar(int dim, const float _Complex u_t[], float _Complex f0[])
+{
+ float _Complex exp[1] = {0.};
+ foo(dim, exp);
+ f0[0] = u_t[0] - exp[0];
+}
@@ -1905,6 +1905,7 @@ execute_update_addresses_taken (void)
? REALPART_EXPR : IMAGPART_EXPR,
TREE_TYPE (other),
TREE_OPERAND (lhs, 0));
+ suppress_warning (lrhs);
gimple *load = gimple_build_assign (other, lrhs);
location_t loc = gimple_location (stmt);
gimple_set_location (load, loc);