https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127516
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I think the fix might be:
--- a/gcc/cp/decl.cc
+++ b/gcc/cp/decl.cc
@@ -8207,7 +8207,7 @@ reshape_init_r (tree type, reshape_iter *d, tree
first_initializer_p,
{
/* Deliberately not CP_AGGREGATE_TYPE_P to get a better diagnostic for
trying to designate a member of a non-aggregate class. */
- if (AGGREGATE_TYPE_P (type))
+ if (AGGREGATE_TYPE_P (type) || gnu_vector_type_p (type))
goto skip_single;
else
gcc_checking_assert (seen_error ());