------- Comment #1 from rguenth at gcc dot gnu dot org 2010-02-20 14:00 ------- You can even use virtual ptr clone () const { return new object(*this); } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43127