https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89224
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |88670 Known to fail| |7.1.0 Keywords| |accepts-invalid Summary|subscript of NEON intrinsic |subscript of const vector |discards const |is considered a rvalue Component|target |c++ --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Actually this is a generic vector C++ issue: typedef __attribute__((vector_size(16))) unsigned char __Int8x8_t; template <class T> void g(T &x) { x = 1; } void f(const __Int8x8_t &x) { g(x[0]); } Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88670 [Bug 88670] [meta-bug] generic vector extension issues