+2016-11-24 Martin Liska <mliska@suse.cz>
+
+ PR bootstrap/78493
+ * parser.c (cp_parser_range_for): Use safe_push instead of quick_push.
+
2016-11-23 Jakub Jelinek <jakub@redhat.com>
PR c++/77907
for (unsigned int i = 0; i < decomp_cnt; i++, d = DECL_CHAIN (d))
{
tree name = DECL_NAME (d);
- names.quick_push (name);
- bindings.quick_push (IDENTIFIER_BINDING (name));
+ names.safe_push (name);
+ bindings.safe_push (IDENTIFIER_BINDING (name));
IDENTIFIER_BINDING (name)
= IDENTIFIER_BINDING (name)->previous;
}
if (names.is_empty ())
{
tree name = DECL_NAME (range_decl);
- names.quick_push (name);
- bindings.quick_push (IDENTIFIER_BINDING (name));
+ names.safe_push (name);
+ bindings.safe_push (IDENTIFIER_BINDING (name));
IDENTIFIER_BINDING (name) = IDENTIFIER_BINDING (name)->previous;
}
}
+2016-11-24 Jakub Jelinek <jakub@redhat.com>
+
+ PR bootstrap/78493
+ * g++.dg/cpp1z/decomp18.C: New test.
+
2016-11-23 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
* gcc.target/aarch64/ldp_stp_1.c : Add -mcpu=generic.
--- /dev/null
+// { dg-do compile { target c++11 } }
+// { dg-options "" }
+
+struct A { char a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r; } a[64];
+
+void
+foo ()
+{
+ int z = 0;
+ for (auto & [ b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s ] : a) // { dg-warning "decomposition declaration only available with" "" { target c++14_down } }
+ z += b + c + d + e + f + g + h + i + j + k + l + m + n + o + p + q + r + s;
+}