https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56973
--- Comment #9 from Jason Merrill ---
*** Bug 79104 has been marked as a duplicate of this bug. ***
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56973
Jason Merrill changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56973
Paolo Carlini changed:
What|Removed |Added
CC||paolo.carlini at oracle dot com
--- Comm
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56973
--- Comment #6 from Jason Merrill ---
Author: jason
Date: Thu Sep 28 19:39:45 2017
New Revision: 253266
URL: https://gcc.gnu.org/viewcvs?rev=253266&root=gcc&view=rev
Log:
PR c++/56973, DR 696 - capture constant variables only as needed.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56973
--- Comment #5 from Jason Merrill ---
Nathan mentioned today that we have the inverse problem as well: after we've
captured i, we should still be able to use its constant value. Here's an
example of things that ought to work and mostly don't:
i
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56973
Jason Merrill changed:
What|Removed |Added
CC||jason at gcc dot gnu.org
Summ