https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89224

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
And here is a runtime test:
typedef __attribute__((vector_size(16))) unsigned char  __Int8x8_t;

template <class T>
void g(T &x) {
    __builtin_abort();
}
template <class T>
void g(const T &x) {
  __builtin_exit(0);
}
void f(const __Int8x8_t x) {
  g(x[0]);
}
int main(void)
{
    __Int8x8_t x ={};
    f(x);
}

Reply via email to