[Bug c++/67773] destructor called on temp object before and named object after move, while not being called on named object before move

2015-09-30 Thread awenocur at aol dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67773 --- Comment #6 from Adam Wenocur --- Whoops! Sorry about the malformed double-post. Another way of explaining the problem is that the compiler appears to be suppressing the wrong destructor call. Since this is a move and not a copy, or in C++03

[Bug c++/67773] destructor called on temp object before and named object after move, while not being called on named object before move

2015-09-30 Thread awenocur at aol dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67773 --- Comment #5 from Adam Wenocur --- (In reply to Jonathan Wakely from comment #3) > Oh, are you expecting this: > > a_thing = demo(demo::second); > > to have the same behaviour as this: > > a_thing.~demo(); > new(&a_thing) demo(demo::se

[Bug c++/67773] destructor called on temp object before and named object after move, while not being called on named object before move

2015-09-30 Thread awenocur at aol dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67773 --- Comment #4 from Adam Wenocur --- (In reply to Jonathan Wakely from comment #3) > Oh, are you expecting this: > > a_thing = demo(demo::second); > > to have the same behaviour as this: > > a_thing.~demo(); > new(&a_thing) demo(demo::se

[Bug c++/67773] destructor called on temp object before and named object after move, while not being called on named object before move

2015-09-29 Thread awenocur at aol dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67773 --- Comment #1 from Adam Wenocur --- compiler output: -*- mode: compilation; default-directory: "~/compiler-test/" -*- Compilation started at Wed Sep 30 00:45:55 ./compile.sh

[Bug c++/67773] New: dealloc called on temp object before and named object after move, while not being called on named object before move

2015-09-29 Thread awenocur at aol dot com
: 4.8.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: awenocur at aol dot com Target Milestone: --- Created attachment 36420 --> https://gcc.gnu.org/bugzi