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

2010-02-19 Thread jason at gcc dot gnu dot org
--- Comment #11 from jason at gcc dot gnu dot org 2010-02-19 21:41 --- Fixed. -- jason at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

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

2009-11-05 Thread likeuclinux at yahoo dot ca
--- Comment #7 from likeuclinux at yahoo dot ca 2009-11-05 21:16 --- Please, this is definitely bug from GCC, for same code give me error in Visual Studio 2008 but not in GCC: #include iostream #include stdio.h #include stdlib.h #include memory using namespace std; class A{ public:

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

2009-11-05 Thread paolo dot carlini at oracle dot com
--- Comment #8 from paolo dot carlini at oracle dot com 2009-11-05 22:11 --- Jason, this isn't a regression, but a very old issue, any chance you can have a look? As far as I can see we are still compiling the snipped in Comment #2 and the EDG-based compilers are still rejecting it...

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

2009-11-05 Thread jason at gcc dot gnu dot org
-- jason at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org |dot org

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

2009-11-05 Thread jason at gcc dot gnu dot org
--- Comment #9 from jason at gcc dot gnu dot org 2009-11-06 04:32 --- Subject: Bug 34180 Author: jason Date: Fri Nov 6 04:32:13 2009 New Revision: 153960 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=153960 Log: PR c++/34180 * method.c

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

2007-11-24 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2007-11-25 02:59 --- With types checking on the trunk, I actually get an ICE: t.cc:8: error: type mismatch in address expression struct G * const struct G * D.2051 = D.2032-g t.cc:8: internal compiler error: verify_gimple failed

[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 memory int main() { class A { const std::auto_ptrint a;

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

2007-11-21 Thread pcarlini at suse dot de
--- 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

[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; }; A a; A b = a; } No, copying of

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

2007-11-21 Thread pcarlini at suse dot de
--- Comment #4 from pcarlini at suse dot de 2007-11-22 00:10 --- (In reply to comment #3) (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; }; A a;

[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, whereas it should