[Bug c++/54383] Internal compiler error for lamba function using this-> with -std=c++0x

2012-09-24 Thread 166291 at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54383



166291 at gmail dot com changed:



   What|Removed |Added



 CC||166291 at gmail dot com



--- Comment #1 from 166291 at gmail dot com 2012-09-24 12:53:57 UTC ---

The following code breaks GCC 4.7.1:



   auto test = [=]() { this



Yes, I didn't paste that badly. That entire line of code alone by itself in the

file will crash GCC.


[Bug c++/54383] Internal compiler error for lamba function using this-> with -std=c++0x

2012-09-26 Thread 166291 at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54383



--- Comment #2 from 166291 at gmail dot com 2012-09-26 18:45:36 UTC ---

Some more information is that this only seems to happen when the lambda

captures variables, and it's in the global scope.