2013-05-04 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 4 May 2013 12:32:05 +0000 (12:32 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 4 May 2013 12:32:05 +0000 (12:32 +0000)
PR c++/51927
* g++.dg/cpp0x/lambda/lambda-nsdmi4.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198594 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nsdmi4.C [new file with mode: 0644]

index 731ccd0..1d684ea 100644 (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
diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nsdmi4.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nsdmi4.C
new file mode 100644 (file)
index 0000000..b592f15
--- /dev/null
@@ -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; };
+};