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

2007-11-21 Thread jeidsath at gmail dot com
--- 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

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

2007-11-21 Thread jeidsath at gmail dot com
--- Comment #3 from jeidsath at gmail dot com 2007-11-21 23:52 --- (In reply to comment #2) > I think this is the issue, nothing specific to std::auto_ptr: > > struct G { G() { } G(G&) { } }; > > int main() > { > class A > { > const G g; > }

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

2007-11-21 Thread jeidsath at gmail dot com
--- Comment #1 from jeidsath at gmail dot com 2007-11-21 22:45 --- I apologize, a line was incorrectly cut from the copy and paste, here is the full code that should not compile, but does: #include int main() { class A { const std::auto_ptr a

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

2007-11-21 Thread jeidsath at gmail dot com
iority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jeidsath at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34180