https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101998

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The C++ standard forbids it, that's why GCC gives an error.

"The operand of the unary & operator shall be an lvalue of some type T."

Reply via email to