https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43127
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
--- Comment #3 from stvwooddell at embarqmail dot com 2010-02-20 18:13
---
Scratch that, that's a error from a file that shouldn't even exist. Copied the
given code to a clean project and it compiled. So bug, but a miscommunication
in that the constructor is being implicitly add so that
--- Comment #2 from stvwooddell at embarqmail dot com 2010-02-20 18:01
---
This compiles for you?
virtual ptr clone () const
{
return new object(*this);
}
gives me the error that a function matching the copy const
--- 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