[C++ testcase, committed] PR 59730

Paolo Carlini paolo.carlini@oracle.com
Thu Jan 9 17:49:00 GMT 2014


Hi,

this just adds the testcase to mainline.

Thanks,
Paolo.

//////////////////////////
-------------- next part --------------
2014-01-09  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/59730
	* g++.dg/cpp0x/variadic145.C: New.
-------------- next part --------------
Index: g++.dg/cpp0x/variadic145.C
===================================================================
--- g++.dg/cpp0x/variadic145.C	(revision 0)
+++ g++.dg/cpp0x/variadic145.C	(working copy)
@@ -0,0 +1,13 @@
+// PR c++/59730
+// { dg-do compile { target c++11 } }
+
+template <typename> void declval();
+template <typename> void forward();
+template <typename> class D;
+template <typename _Functor, typename... _Bound_args>
+class D <_Functor(_Bound_args...)> {
+  template <typename... _Args, decltype(declval<_Functor>)>
+  void operator()(...) {
+    0(forward<_Args>...);
+  }
+};


More information about the Gcc-patches mailing list