Patchwork [C++,testcase] PR 53122

login
register
mail settings
Submitter Paolo Carlini
Date Oct. 10, 2012, 1:27 p.m.
Message ID <507577CA.6090004@oracle.com>
Download mbox | patch
Permalink /patch/190639/
State New
Headers show

Comments

Paolo Carlini - Oct. 10, 2012, 1:27 p.m.
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.

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...>;
+}