This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34180] Default copy constructor copies const auto_ptr members
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Nov 2007 23:21:02 -0000
- Subject: [Bug c++/34180] Default copy constructor copies const auto_ptr members
- References: <bug-34180-15406@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pcarlini at suse dot de 2007-11-21 23:21 -------
I think this is the issue, nothing specific to std::auto_ptr:
struct G { G() { } G(G&) { } };
int main()
{
class A
{
const G g;
};
A a;
A b = a;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34180