[Bug c++/86633] invalid with rvalue references

2021-07-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
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

2018-07-23 Thread redi at gcc dot gnu.org
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.