https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79683
--- Comment #4 from rguenther at suse dot de <rguenther at suse dot de> --- On Thu, 23 Feb 2017, jakub at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79683 > > --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- > Maybe build_qualified_type with TYPE_QUALS of the original pointer would do > it. > I'm surprised we don't copy over const either. No, it's just a matter of not overwriting the correct vector type computed for the load.