aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/pr61924.C17
2 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index d0796b6..378f309 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2014-12-12 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/61924
+ * g++.dg/cpp0x/pr61924.C: New.
+
2014-12-12 Vladimir Makarov <vmakarov@redhat.com>
PR target/64110
diff --git a/gcc/testsuite/g++.dg/cpp0x/pr61924.C b/gcc/testsuite/g++.dg/cpp0x/pr61924.C
new file mode 100644
index 0000000..7730f89
--- /dev/null
+++ b/gcc/testsuite/g++.dg/cpp0x/pr61924.C
@@ -0,0 +1,17 @@
+// PR c++/61924
+// { dg-do compile { target c++11 } }
+
+struct function
+{
+ template < typename _Functor > function (_Functor); // { dg-error "never defined" }
+};
+
+template < typename > struct RetryingRpc
+{
+ template < typename StubType> RetryingRpc (StubType, function =[]{});
+};
+
+void fn()
+{
+ RetryingRpc<int> rpc(0, []{});
+}