diff mbox

[C++,testcase] PR 53122

Message ID 507577CA.6090004@oracle.com
State New
Headers show

Commit Message

Paolo Carlini Oct. 10, 2012, 1:27 p.m. UTC
Hi,

adding the testcase and closing the PR as fixed in mainline.

Thanks,
Paolo.

//////////////////
2012-10-10  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/53122
	* g++.dg/cpp0x/auto35.C: New.
diff mbox

Patch

Index: g++.dg/cpp0x/auto35.C
===================================================================
--- g++.dg/cpp0x/auto35.C	(revision 0)
+++ g++.dg/cpp0x/auto35.C	(working copy)
@@ -0,0 +1,11 @@ 
+// PR c++/53122
+// { dg-do compile { target c++11 } }
+
+template<typename... Args>
+  void foo(Args&&...) { }
+
+template<typename... Args>
+  void bar(Args&&...)
+{
+  auto fn = foo<Args...>;
+}