re PR c++/56565 (lambda function in NSMI fails to capture non-static data member.)

2013-03-08  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/56565
	* g++.dg/cpp0x/lambda/lambda-nsdmi2.C: New.

From-SVN: r196564
This commit is contained in:
Paolo Carlini 2013-03-08 22:52:36 +00:00 committed by Paolo Carlini
parent f030a1dc03
commit cf2435d3d3
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2013-03-08 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/56565
* g++.dg/cpp0x/lambda/lambda-nsdmi2.C: New.
2013-03-08 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51412

View File

@ -0,0 +1,4 @@
// PR c++/56565
// { dg-do compile { target c++11 } }
struct bug { int a; int *b = [&]{ return &a; }(); };