This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]