https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64337
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE Target Milestone|--- |5.2 --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Yes it is a dup of bug 57507. Note there was an improvement to GCC 5.2 which used move instead of copies (for the shared_ptr) which makes the error go away. *** This bug has been marked as a duplicate of bug 57507 ***