https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80230
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- You are misunderstanding the error message. What it is trying to say the type of vecstruct[vecstructfromi(A)] is size_t and not the struct type you think it is.