re PR c++/51927 ([C++0x] Cannot access non-static members in initializer)

2013-05-04  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/51927
	* g++.dg/cpp0x/lambda/lambda-nsdmi4.C: New.

From-SVN: r198594
This commit is contained in:
Paolo Carlini 2013-05-04 12:32:05 +00:00 committed by Paolo Carlini
parent 5ec6aff2dd
commit 71871e37d9
2 changed files with 19 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2013-05-04 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51927
* g++.dg/cpp0x/lambda/lambda-nsdmi4.C: New.
2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/57150

View file

@ -0,0 +1,14 @@
// PR c++/51927
// { dg-do compile { target c++11 } }
struct function
{
template<typename Functor>
function(Functor);
};
struct testee
{
function l1 = []() { };
function l2 = [=]() { l1; };
};