[Bug c++/89158] [8/9 Regression] by-value capture of ICE variable isn't an lvalue?

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Feb 2 16:19:00 GMT 2019


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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
From a quick look it seems we haven't properly set need_temporary_p when
converting NON_LVALUE_EXPR<42> to const int &.  Then taking the address of 42
breaks.


More information about the Gcc-bugs mailing list