From: Marek Polacek Date: Mon, 30 Dec 2019 16:07:33 +0000 (+0000) Subject: Remove assert in reshape_init_r. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a5650762680ea88c789906de91ded06ee48e1e67;p=gcc.git Remove assert in reshape_init_r. Asserting !BRACE_ENCLOSED_INITIALIZER_P seems pretty pointless, since that checks for init_list_type_node, and a compound literal won't have that type, nor will we see that type if we just checked that it's something else. * decl.c (reshape_init_r): Remove assert. From-SVN: r279771 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 9c30253f094..a237a8ffba3 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2019-12-30 Marek Polacek + + * decl.c (reshape_init_r): Remove assert. + 2019-12-30 Paolo Carlini * decl2.c (delete_sanity): Add location_t parameter and use diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 2760dba5be5..afe2aacf0d5 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -6408,7 +6408,6 @@ reshape_init_r (tree type, reshape_iter *d, bool first_initializer_p, else if (same_type_ignoring_top_level_qualifiers_p (type, init_type)) { ++d->cur; - gcc_assert (!BRACE_ENCLOSED_INITIALIZER_P (stripped_init)); return init; } else