https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118631
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- With this copy constructor added, I get the results you expected: StringSet(const StringSet & o) : msets {msets_}, msets_(o.msets_) {};