This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/52591] [C++0x] [4.7 Regression] moving std::vector relies on movable elements
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 15 Mar 2012 00:36:22 +0000
- Subject: [Bug libstdc++/52591] [C++0x] [4.7 Regression] moving std::vector relies on movable elements
- Auto-submitted: auto-generated
- References: <bug-52591-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52591
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-03-15 00:36:22 UTC ---
(In reply to comment #1)
> Jon, can you have a look? I suspect it's just matter of telling apart cases in
> the move-assignment operator at compile time with templates instead of a normal
> conditional.
Oh I see what you mean, the untaken branch is instantiated anyway.
It's not possible to tell if the allocators are equal at compile-time and until
we implement DR 2103 (I have a patch) propagate_on_container_move_assignment is
false for std::allocator, so that branch will be taken in general.
Anyway, I'll look into it...