https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97207
--- Comment #15 from Tom de Vries <vries at gcc dot gnu.org> --- (In reply to Richard Biener from comment #9) > diff --git a/gcc/vec.h b/gcc/vec.h > index d73d865cff2..c0e577893a3 100644 > --- a/gcc/vec.h > +++ b/gcc/vec.h > @@ -1546,7 +1546,12 @@ public: > this->m_vec = r.m_vec; > r.m_vec = NULL; > } > - void operator= (auto_vec&&) = delete; > + void operator= (auto_vec&& r) > + { > + this->release (); > + this->m_vec = r.m_vec; > + r.m_vec = NULL; > + } > }; > > > > works for the vec.c test, Tom - can you check if it works for nvptx? It does.