[C++,testcase,committed] PR 56565

Submitted by Paolo Carlini on March 8, 2013, 10:54 p.m.

Details

Message ID 513A6C09.7010906@oracle.com
State New
Headers show

Commit Message

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 hide | download patch | download mbox

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