https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57858
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization --- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So this was fixed in GCC 8 but I cannot tell by what. ch_vect has been there since 2014 which should have done the copying of the header but did not until GCC 8. There is not enough debug output to tell what changed either.