https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51066
Eric Gallager changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
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
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
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
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