https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97207
--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
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?