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

--- Comment #8 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Feb  6 15:26:24 2019
New Revision: 268580

URL: https://gcc.gnu.org/viewcvs?rev=268580&root=gcc&view=rev
Log:
        PR c++/89158 - by-value capture of constexpr variable broken.
        * call.c (convert_like_real) <case ck_user>: Call mark_exp_read
        instead of mark_rvalue_use.

Added:
    branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-89158.C
Modified:
    branches/gcc-8-branch/gcc/cp/ChangeLog
    branches/gcc-8-branch/gcc/cp/call.c

Reply via email to