Re: internal compiler error using lambda and this

2012-08-27 Thread Gerald Pfeifer
On Sun, 26 Aug 2012, Gerald Pfeifer wrote: > I tried this with a current snapshot of what will become GCC 4.8.0 > in several months, and now get this: > > $ cat x.cc > auto foo = [&](int a) { return a > this->b; }; > > $ g++ x.cc > x.cc:1:6: error: 'foo' does not name a type >auto foo

Re: internal compiler error using lambda and this

2012-08-27 Thread Florian Weimer
On 08/26/2012 01:09 AM, Gerald Pfeifer wrote: On Tue, 29 May 2012, Andreas Karrenbauer wrote: To whom it may concern: Please find a small code example which causes an internal compiler error with g++-4.7 (opensuse): Thanks for the report, Andreas. I tried this with a current snapshot of what

Re: internal compiler error using lambda and this

2012-08-25 Thread Gerald Pfeifer
On Tue, 29 May 2012, Andreas Karrenbauer wrote: > To whom it may concern: > > Please find a small code example which causes an internal compiler error with > g++-4.7 (opensuse): Thanks for the report, Andreas. I tried this with a current snapshot of what will become GCC 4.8.0 in several months,

internal compiler error using lambda and this

2012-05-29 Thread Andreas Karrenbauer
To whom it may concern: Please find a small code example which causes an internal compiler error with g++-4.7 (opensuse): Best regards, Andreas Karrenbauer $ cat bug_g++.cc auto foo = [&](int a) { return a > this->b; }; int main() { return 0; } $ g++-4.7 -v -Wall -g -std=c++0x bug_g++.cc -o