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

2019-02-06 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89158

Marek Polacek  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #9 from Marek Polacek  ---
Fixed.

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

2019-02-06 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89158

--- Comment #8 from Marek Polacek  ---
Author: mpolacek
Date: Wed Feb  6 15:26:24 2019
New Revision: 268580

URL: https://gcc.gnu.org/viewcvs?rev=268580=gcc=rev
Log:
PR c++/89158 - by-value capture of constexpr variable broken.
* call.c (convert_like_real) : 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

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

2019-02-05 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89158

Marek Polacek  changed:

   What|Removed |Added

Summary|[8/9 Regression] by-value   |[8 Regression] by-value
   |capture of ICE variable |capture of ICE variable
   |isn't an lvalue?|isn't an lvalue?

--- Comment #7 from Marek Polacek  ---
Fixed on trunk so far.