https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89158
Jakub Jelinek changed:
What|Removed |Added
Priority|P3 |P2
Status|UNCONFIRMED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89158
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
--- Comment
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89158
--- Comment #4 from Marek Polacek ---
Looks like using mark_lvalue_use instead works.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89158
Marek Polacek changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89158
Marek Polacek changed:
What|Removed |Added
Keywords||patch
--- Comment #5 from Marek Polacek
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.