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

2019-02-02 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89158 Jakub Jelinek changed: What|Removed |Added Priority|P3 |P2 Status|UNCONFIRMED

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

2019-02-02 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89158 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

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

2019-02-02 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89158 --- Comment #3 from Marek Polacek --- When reference_binding creates the conversion const int -> const int & the expression is still VIEW_CONVERT_EXPR(Val) so it doesn't set conv->need_temporary_p. Only then do we call mark_rvalue_use which turn

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

2019-02-04 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89158 --- Comment #4 from Marek Polacek --- Looks like using mark_lvalue_use instead works.

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

2019-02-04 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89158 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

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

2019-02-04 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89158 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #5 from Marek Polacek

[Bug c++/89158] [8/9 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 --- Comment #6 from Marek Polacek --- Author: mpolacek Date: Tue Feb 5 21:30:51 2019 New Revision: 268561 URL: https://gcc.gnu.org/viewcvs?rev=268561&root=gcc&view=rev Log: PR c++/89158 - by-value capture of constexpr variable broken.