/* { dg-do compile } */ /* { dg-add-options vect_early_break } */ /* { dg-require-effective-target vect_early_break } */ /* { dg-require-effective-target vect_int } */ /* { dg-additional-options "-w -O2" } */ void fancy_abort(char *, int, const char *) __attribute__((__noreturn__)); template struct poly_int_pod { int coeffs[N]; }; template class poly_int : public poly_int_pod { public: template poly_int &operator+=(const poly_int_pod &); }; template template poly_int &poly_int::operator+=(const poly_int_pod &a) { for (int i = 0; i < N; i++) this->coeffs[i] += a.coeffs[i]; return *this; } template poly_int exact_div(poly_int_pod, Cb) { poly_int r; return r; } struct vec_prefix { unsigned m_num; }; struct vl_ptr; struct va_heap { typedef vl_ptr default_layout; }; template struct vec; template struct vec { T &operator[](unsigned); vec_prefix m_vecpfx; T m_vecdata[]; }; template T &vec::operator[](unsigned ix) { m_vecpfx.m_num ? fancy_abort("", 9, __FUNCTION__), 0 : 0; return m_vecdata[ix]; } template struct vec { T &operator[](unsigned ix) { return m_vec[ix]; } vec m_vec; }; class auto_vec : public vec, va_heap> {}; template class vector_builder : public auto_vec {}; class int_vector_builder : public vector_builder { public: int_vector_builder(poly_int<2, long>, int, int); }; bool vect_grouped_store_supported() { int i; poly_int<2, long> nelt; int_vector_builder sel(nelt, 2, 3); for (i = 0; i < 6; i++) sel[i] += exact_div(nelt, 2); }