[Bug c++/64791] Generic lambda fails to implicitly capture `const` variable

2015-02-02 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64791 --- Comment #9 from Ville Voutilainen ville.voutilainen at gmail dot com --- I can't see any warnings with my trunk build from today, either.

[Bug c++/64791] Generic lambda fails to implicitly capture `const` variable

2015-02-02 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64791 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added Status|NEW |RESOLVED

[Bug c++/64791] Generic lambda fails to implicitly capture `const` variable

2015-01-31 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64791 --- Comment #8 from Paolo Carlini paolo.carlini at oracle dot com --- Weird, I tried on my machine yesterday's r220267 and same result, no warning (with -std=gnu++1z -Wall -Wextra). I guess that before closing this bug we need either to figure

[Bug c++/64791] Generic lambda fails to implicitly capture `const` variable

2015-01-31 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64791 --- Comment #6 from Ville Voutilainen ville.voutilainen at gmail dot com --- I ran it with this thing: http://melpon.org/wandbox/permlink/gAsh89NaSSFspYjq

[Bug c++/64791] Generic lambda fails to implicitly capture `const` variable

2015-01-31 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64791 --- Comment #5 from Paolo Carlini paolo.carlini at oracle dot com --- Hi ville. With r220303 I don't see the warning, at any optimization level and various combinations of other flags + -Wunused-but-set-variable of course. Can you please double

[Bug c++/64791] Generic lambda fails to implicitly capture `const` variable

2015-01-31 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64791 --- Comment #7 from Paolo Carlini paolo.carlini at oracle dot com --- I know that web page, but today, 20150131, I can't reproduce the issue with the current tree on my machine.

[Bug c++/64791] Generic lambda fails to implicitly capture `const` variable

2015-01-27 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64791 Ville Voutilainen ville.voutilainen at gmail dot com changed: What|Removed |Added Keywords|

[Bug c++/64791] Generic lambda fails to implicitly capture `const` variable

2015-01-27 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64791 --- Comment #4 from Ville Voutilainen ville.voutilainen at gmail dot com --- Oh, wait a minute, with trunk, I see an incorrect warning: prog.cc: In function 'int main()': prog.cc:7:15: warning: variable 'a' set but not used

[Bug c++/64791] Generic lambda fails to implicitly capture `const` variable

2015-01-25 Thread tom at kera dot name
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64791 --- Comment #1 from Tomalak Geret'kal tom at kera dot name --- Build error: / main.cpp: In instantiation of 'main()::lambda(auto:1) [with auto:1 = int]': /usr/local/include/c++/4.9.2/functional:2149:71: required by

[Bug c++/64791] Generic lambda fails to implicitly capture `const` variable

2015-01-25 Thread tom at kera dot name
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64791 --- Comment #2 from Tomalak Geret'kal tom at kera dot name --- Actually, I'm no longer sure that `a` *is* odr-used...