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: "jeidsath at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Nov 2007 00:24:26 -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 #5 from jeidsath at gmail dot com 2007-11-22 00:24 -------
> Of course, and of course. But that has nothing to do with my reduced snippet,
> which is equivalent to our standard-conforming implementation of std::auto_ptr,
> as far as I can see, and, does compile, whereas it should not - to be clear, I
> think you are therefore right, just there is nothing wrong with our
> implementation of std::auto_ptr, if anything, this is a front-end issue. By the
> way, ICC rejects my reduced snippet.
My fault, I see now -- I should have noticed that your copy constructor was a
non-const function. I agree that this is a front-end issue.
--
jeidsath at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jeidsath at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34180