https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85198
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- long int __attribute__((vector_size (16))) v; long long int __attribute__((vector_size (16))) w; void foo () { __builtin_printf ("%ld\n", v[0]); __builtin_printf ("%lld\n", w[0]); } works fine, so it is only the altivec(vector__) attribute that is problematic: __attribute__((altivec(vector__))) long int v; __attribute__((altivec(vector__))) long long int w; void foo () { __builtin_printf ("%ld\n", v[0]); __builtin_printf ("%lld\n", w[0]); }