[Bug c++/84726] [8 regression] Unnecessary lambda capture of constant variables

2018-09-06 Thread P at draigBrady dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84726 Pádraig Brady changed: What|Removed |Added CC||P at draigBrady dot com --- Comment #4 f

[Bug c++/84726] [8 regression] Unnecessary lambda capture of constant variables

2018-03-09 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84726 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/84726] [8 regression] Unnecessary lambda capture of constant variables

2018-03-09 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84726 --- Comment #2 from Jason Merrill --- Author: jason Date: Fri Mar 9 21:40:55 2018 New Revision: 258398 URL: https://gcc.gnu.org/viewcvs?rev=258398&root=gcc&view=rev Log: PR c++/84726 - unnecessary capture of constant vars. * cp

[Bug c++/84726] [8 regression] Unnecessary lambda capture of constant variables

2018-03-05 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84726 --- Comment #1 from Jason Merrill --- Optimizing it away is allowed by 8.4.5.1p2: An implementation may define the closure type differently from what is described below provided this does not alter the observable behavior of the program other th

[Bug c++/84726] [8 regression] Unnecessary lambda capture of constant variables

2018-03-05 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84726 Jason Merrill changed: What|Removed |Added Target Milestone|--- |8.0

[Bug c++/84726] [8 regression] Unnecessary lambda capture of constant variables

2018-03-05 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84726 Jason Merrill changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|