https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90904
--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> --- (In reply to Richard Biener from comment #1) > I ran into a similar issue while trying > > hash_map <key, auto_vec<value, 2> > > > where copying fails to adjust the pointer to the in-place storage giving > even more obscure errors. That's exactly what just happened to me. It has led to bizarre miscompilations. How did you get around this? Use a plain vec and manage the copying yourself?