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

login
register
mail settings
Submitter Paolo Carlini
Date March 8, 2013, 10:54 p.m.
Message ID <513A6C09.7010906@oracle.com>
Download mbox | patch
Permalink /patch/226285/
State New
Headers show

Comments

Paolo Carlini - March 8, 2013, 10:54 p.m.
Hi,

I'm adding the testcase and closing the PR as fixed.

Thanks,
Paolo.

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

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

Patch

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; }(); };