https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112971
--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The real fix will be to const_binop . Right now const_binop only handles a few cases for VLA's VECTOR_CST and it seems like it really only handles +, -, and sometimes * and sometimes left shit .