This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/34180] Default copy constructor copies const auto_ptr members



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]