https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107123
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Yes GCC does not do deduction on the vector size attribute currently. This part of the extension is not documented one way or the other either because nobody thought of this right now. One easy way around this is to wrap the vector type in class and use that class always. It would be nice to standardized the vector attribute.