[Bug c++/61636] generic lambda "cannot call member function without object"

2016-08-24 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 Markus Trippelsdorf changed: What|Removed |Added CC||tinab at hush dot ai --- Comment #

[Bug c++/61636] generic lambda "cannot call member function without object"

2016-08-09 Thread dan.cooke89 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 Daniel Cooke changed: What|Removed |Added CC||dan.cooke89 at gmail dot com --- Comment

[Bug c++/61636] generic lambda "cannot call member function without object"

2016-05-10 Thread redboltz at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 Takatoshi Kondo changed: What|Removed |Added CC||redboltz at gmail dot com --- Comment

[Bug c++/61636] generic lambda "cannot call member function without object"

2016-04-29 Thread ishitatsuyuki at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 Tatsuyuki Ishi changed: What|Removed |Added CC||ishitatsuyuki at gmail dot com --- Comm

[Bug c++/61636] generic lambda "cannot call member function without object"

2015-12-16 Thread bernds at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 Bernd Schmidt changed: What|Removed |Added CC||ldionne.2 at gmail dot com --- Comment #

[Bug c++/61636] generic lambda "cannot call member function without object"

2015-10-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 Jonathan Wakely changed: What|Removed |Added CC||jens.auer at cgi dot com --- Comment #

[Bug c++/61636] generic lambda "cannot call member function without object"

2015-07-06 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 Markus Trippelsdorf changed: What|Removed |Added CC||fiesh at zefix dot tv --- Comment

[Bug c++/61636] generic lambda "cannot call member function without object"

2015-03-09 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 --- Comment #12 from Adam Butcher --- If the containing context is made a template (as per pr64382 and pr64466) or if the patch below is made to lambda.c, the synthesized default 'this' looks to get captured OK, but gimplification process crashes

[Bug c++/61636] generic lambda "cannot call member function without object"

2015-03-09 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 Adam Butcher changed: What|Removed |Added CC||lh_mouse at 126 dot com --- Comment #11 f

[Bug c++/61636] generic lambda "cannot call member function without object"

2014-07-26 Thread contact at jeaye dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 Jeaye changed: What|Removed |Added CC||contact at jeaye dot com --- Comment #10 from Je

[Bug c++/61636] generic lambda "cannot call member function without object"

2014-07-07 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 --- Comment #9 from Adam Butcher --- (In reply to Adam Butcher from comment #8) > There are no overloads of 'fn1' that can accept a 'B'. > Oops, sorry. I meant to say that there are no overloads of 'fn1' that can accept an 'A'. Clearly a 'B' ma

[Bug c++/61636] generic lambda "cannot call member function without object"

2014-07-07 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 --- Comment #8 from Adam Butcher --- (In reply to tower120 from comment #7) > I'm not sure what you mean, about adding "this->". > I meant spelling "fn1(data)" as "this->fn1(data)" to explicitly specify the subject of the member call. > But th

[Bug c++/61636] generic lambda "cannot call member function without object"

2014-07-06 Thread tower120 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 --- Comment #7 from tower120 --- I'm not sure what you mean, about adding "this->". But this case is not working : http://coliru.stacked-crooked.com/a/d69de477f9a746cb But to be true, it not work with clang either.

[Bug c++/61636] generic lambda "cannot call member function without object"

2014-07-06 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 Adam Butcher changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/61636] generic lambda "cannot call member function without object"

2014-07-06 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 --- Comment #5 from Adam Butcher --- In an attempt to get a reduced testcase, I've uncovered an ICE. With the extra "this->" qualification on the reference to 'f' below, the code compiles fine. Alternatively, if 'this' is explicitly captured, t

[Bug c++/61636] generic lambda "cannot call member function without object"

2014-07-06 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 Adam Butcher changed: What|Removed |Added CC|adam at jessamine dot co.uk|abutcher at gcc dot gnu.org --- C

[Bug c++/61636] generic lambda "cannot call member function without object"

2014-06-28 Thread tower120 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 --- Comment #3 from tower120 --- I found that as only I pass *this as parameter and then call functions from it, it works ok. But it have to be auto: /// This work std::cout << if_else(do_first, *this, [&]

[Bug c++/61636] generic lambda "cannot call member function without object"

2014-06-28 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 Paolo Carlini changed: What|Removed |Added CC|tower120 at gmail dot com |adam at jessamine dot co.uk ---

[Bug c++/61636] generic lambda "cannot call member function without object"

2014-06-28 Thread tower120 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 --- Comment #1 from tower120 --- Furthermore, if not pass "data" as a lambda function param, but capture it from current scope, it deduces type wrong. http://coliru.stacked-crooked.com/a/ae022b9d25d93490 Uncomment static_cast to make it work. B