[Bug libstdc++/61143] [4.9/4.10 Regression] Arithmetic exception on emplacing into unordered_map moved out

2014-05-23 Thread fdumont at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61143 --- Comment #13 from François Dumont fdumont at gcc dot gnu.org --- Author: fdumont Date: Fri May 23 19:35:12 2014 New Revision: 210876 URL: http://gcc.gnu.org/viewcvs?rev=210876root=gccview=rev Log: 2014-05-23 François Dumont

[Bug libstdc++/61143] [4.9/4.10 Regression] Arithmetic exception on emplacing into unordered_map moved out

2014-05-23 Thread fdumont at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61143 François Dumont fdumont at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug libstdc++/61143] [4.9/4.10 Regression] Arithmetic exception on emplacing into unordered_map moved out

2014-05-21 Thread fdumont at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61143 --- Comment #12 from François Dumont fdumont at gcc dot gnu.org --- Author: fdumont Date: Wed May 21 19:51:05 2014 New Revision: 210726 URL: http://gcc.gnu.org/viewcvs?rev=210726root=gccview=rev Log: 2014-05-21 François Dumont

[Bug libstdc++/61143] [4.9/4.10 Regression] Arithmetic exception on emplacing into unordered_map moved out

2014-05-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61143 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added CC|

[Bug libstdc++/61143] [4.9/4.10 Regression] Arithmetic exception on emplacing into unordered_map moved out

2014-05-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61143 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Severity|normal |major ---

[Bug libstdc++/61143] [4.9/4.10 Regression] Arithmetic exception on emplacing into unordered_map moved out

2014-05-13 Thread felix at fontein dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61143 --- Comment #9 from Felix Fontein felix at fontein dot de --- Another workaround is to use reserve(), as in: std::unordered_mapint, int b = std::move(a); a.reserve(1); // any number 0 will do a.emplace(1, 1);

[Bug libstdc++/61143] [4.9/4.10 Regression] Arithmetic exception on emplacing into unordered_map moved out

2014-05-13 Thread fdumont at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61143 François Dumont fdumont at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org

[Bug libstdc++/61143] [4.9/4.10 Regression] Arithmetic exception on emplacing into unordered_map moved out

2014-05-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61143 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED ---

[Bug libstdc++/61143] [4.9/4.10 Regression] Arithmetic exception on emplacing into unordered_map moved out

2014-05-12 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61143 --- Comment #5 from Jonathan Wakely redi at gcc dot gnu.org --- (In reply to François Dumont from comment #4) I simply considered that the moved container instance wouldn't be reused this way, just potentially for some immutable operations. I

[Bug libstdc++/61143] [4.9/4.10 Regression] Arithmetic exception on emplacing into unordered_map moved out

2014-05-12 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61143 --- Comment #6 from Marc Glisse glisse at gcc dot gnu.org --- There was that whole discussion on how much sense it makes to make move constructors noexcept when default constructors aren't...