[Bug c++/86633] invalid with rvalue references
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86633 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW |RESOLVED --- Comment #2 from Andrew Pinski --- This is a dup of bug 98440. *** This bug has been marked as a duplicate of bug 98440 ***
[Bug c++/86633] invalid with rvalue references
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86633 Jonathan Wakely changed: What|Removed |Added Keywords||accepts-invalid Status|UNCONFIRMED |NEW Last reconfirmed||2018-07-23 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely --- [expr.reinterpret.cast] p11 covers casting to a reference type, and is only allowed when the source is a glvalue, so this is invalid.