https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86633
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |accepts-invalid Status|UNCONFIRMED |NEW Last reconfirmed| |2018-07-23 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- [expr.reinterpret.cast] p11 covers casting to a reference type, and is only allowed when the source is a glvalue, so this is invalid.