[Bug c++/46246] [C++0x] Move constructor required when passing a temporary by copy, but not actually used

2010-10-31 Thread a.pignotti at sssup dot it
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46246 --- Comment #6 from Alessandro Pignotti 2010-10-31 15:10:22 UTC --- Please consider the first test case before declaring this bug invalid. I think should be legal to delete the move construtor and still being able to pass temporaries by copy.

[Bug c++/46246] [C++0x] Move constructor required when passing a temporary by copy, but not actually used

2010-10-30 Thread a.pignotti at sssup dot it
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46246 --- Comment #2 from Alessandro Pignotti 2010-10-30 16:31:27 UTC --- The secondo attachment compiles, but the move constructor seems not really used. The output is: default bar foo called Moreover i was expecting a call to the copy constructor b

[Bug c++/46246] [C++0x] Move constructor required when passing a temporary by copy, but not actually used

2010-10-30 Thread a.pignotti at sssup dot it
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46246 --- Comment #1 from Alessandro Pignotti 2010-10-30 16:28:49 UTC --- Created attachment 22209 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22209 test case that shows that the move constructor is not actually used

[Bug c++/46246] New: [C++0x] Move constructor required when passing a temporary by copy, but not actually used

2010-10-30 Thread a.pignotti at sssup dot it
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46246 Summary: [C++0x] Move constructor required when passing a temporary by copy, but not actually used Product: gcc Version: 4.5.1 Status: UNCONFIRMED Severity: normal