This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] Remove noexcept mistakenly added to the unordered_* move cons
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Thu, 01 Sep 2011 17:51:16 +0200
- Subject: [v3] Remove noexcept mistakenly added to the unordered_* move cons
Hi,
while working on libstdc++/50257 I noticed this recent mistake of mine:
given our current impl of the unordered containers, the move constructor
allocates memory, thus can certainly throw, similarly to deque, for
example. Also, I reordered the operations in the body of the move
constructor, because we weren't updating __ht._M_rehash_policy before
using _M_next_bkt on it.
Tested x86_64-linux, committed to mainline (the issue with the body of
the move cons exists also in 4.6.x, should be fixed there too, probably)
Thanks,
Paolo.
////////////////////
Attachment:
CL
Description: Text document
Attachment:
patch
Description: Text document