Hi, I'm adding the testcase and closing the PR as fixed.
Thanks, Paolo. //////////////////////
2013-03-08 Paolo Carlini <paolo.carl...@oracle.com> PR c++/56565 * g++.dg/cpp0x/lambda/lambda-nsdmi2.C: New.
Index: g++.dg/cpp0x/lambda/lambda-nsdmi2.C =================================================================== --- g++.dg/cpp0x/lambda/lambda-nsdmi2.C (revision 0) +++ g++.dg/cpp0x/lambda/lambda-nsdmi2.C (working copy) @@ -0,0 +1,4 @@ +// PR c++/56565 +// { dg-do compile { target c++11 } } + +struct bug { int a; int *b = [&]{ return &a; }(); };