https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71786
Marc Glisse <glisse at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #3 from Marc Glisse <glisse at gcc dot gnu.org> --- The second A is constructed by a copy/move constructor, which is generated by default. You need to write one yourself and register the pointer there.