[Bug c++/51066] [C++0x] warning about binding an rvalue-reference to an implicit conversion result

2017-09-26 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51066 Eric Gallager changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/51066] [C++0x] warning about binding an rvalue-reference to an implicit conversion result

2012-01-19 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51066 --- Comment #1 from Jonathan Wakely 2012-01-19 19:42:33 UTC --- http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#1414 is related

[Bug c++/51066] [C++0x] warning about binding an rvalue-reference to an implicit conversion result

2021-03-23 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51066 --- Comment #3 from Jonathan Wakely --- This warning would also help with this horror: https://twitter.com/zygoloid/status/1367301323838812160 #include void f(float&&) { puts("float"); } void f(int&&) { puts("int"); } template void g(T x) { f(x

[Bug c++/51066] [C++0x] warning about binding an rvalue-reference to an implicit conversion result

2021-03-23 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51066 --- Comment #4 from Jonathan Wakely --- And this one https://twitter.com/wakomeup/status/1274778577087627267 struct B { }; struct D : B { }; B b; D&& d(b); // binds to implicit conversion result D&& dd(std::move(b)); // binds to im

[Bug c++/51066] [C++0x] warning about binding an rvalue-reference to an implicit conversion result

2023-07-01 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51066 --- Comment #5 from Eric Gallager --- (In reply to Jonathan Wakely from comment #3) > This warning would also help with this horror: > https://twitter.com/zygoloid/status/1367301323838812160 (In reply to Jonathan Wakely from comment #4) > And th