https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61213
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2014-05-17 Known to work| |4.6.4 Summary|std::forward_as_tuple and |[4.7/4.8/4.9/4.10 |std::tuple<T&&> and any |Regression] |rvalue loose data |std::forward_as_tuple and | |std::tuple<T&&> and any | |rvalue loose data Ever confirmed|0 |1 Known to fail| |4.10.0, 4.7.3, 4.8.2, 4.9.0 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- 4.6 gave the right answer Using -fno-indirect-inlining gives the correct result Also reproducable with -O1 -findirect-inlining -finline-small-functions