https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101029
--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:da25516718cb150cc938f5947650c9ab486505c6 commit r11-8586-gda25516718cb150cc938f5947650c9ab486505c6 Author: Jason Merrill <ja...@redhat.com> Date: Wed Jun 16 17:42:15 2021 -0400 c++: Tweak PR101029 fix The case of an initializer with side effects for a zero-length array seems extremely unlikely, but we should still return the right type in that case. PR c++/101029 gcc/cp/ChangeLog: * init.c (build_vec_init): Preserve the type of base.