[Bug c++/43127] Inconsistent and odd constructor calls.

2024-03-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43127 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/43127] Inconsistent and odd constructor calls.

2010-02-20 Thread stvwooddell at embarqmail dot com
--- 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

[Bug c++/43127] Inconsistent and odd constructor calls.

2010-02-20 Thread stvwooddell at embarqmail dot com
--- 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

[Bug c++/43127] Inconsistent and odd constructor calls.

2010-02-20 Thread rguenth at gcc dot gnu dot org
--- 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