PR c++/89158 - by-value capture of constexpr variable broken.
authorMarek Polacek <polacek@redhat.com>
Tue, 5 Feb 2019 21:30:51 +0000 (21:30 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 5 Feb 2019 21:30:51 +0000 (21:30 +0000)
commit0d806438807541d31a759f687279e704ad103609
treea954187353070a2b08aa7342f80baed4a15c1079
parentb81e1cd506ad06e4eb0a658d26119129d110a5a9
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.

* g++.dg/cpp0x/lambda/lambda-89158.C: New test.

From-SVN: r268561
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-89158.C [new file with mode: 0644]