[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 --- Another workaround is to use reserve(), as in: std::unordered_map b = std::move(a); a.reserve(1); // any number > 0 will do a.emplace(1, 1);

[Bug c++/59766] c++1y: declaring friend function with 'auto' return type deduction is rejected with bogus reason

2014-06-28 Thread felix at fontein dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59766 --- Comment #4 from Felix Fontein --- I can confirm this bug for GCC 4.9.0 20140604 (prerelease).

[Bug c++/61642] New: g++ confuses template member template function with template class

2014-06-28 Thread felix at fontein dot de
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: felix at fontein dot de The following code does not compile under GCC 4.9.0 20140604 (prerelease): -8<-8<-8<- template struct X { }; template v