Patchwork [C++,testcase,committed] PR 51927

login
register
mail settings
Submitter Paolo Carlini
Date May 4, 2013, 12:34 p.m.
Message ID <51850069.5080605@oracle.com>
Download mbox | patch
Permalink /patch/241457/
State New
Headers show

Comments

Paolo Carlini - May 4, 2013, 12:34 p.m.
Hi,

committed to mainline.

Thanks,
Paolo.

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

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

Patch

Index: g++.dg/cpp0x/lambda/lambda-nsdmi4.C
===================================================================
--- g++.dg/cpp0x/lambda/lambda-nsdmi4.C	(revision 0)
+++ g++.dg/cpp0x/lambda/lambda-nsdmi4.C	(working copy)
@@ -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; };
+};