Hi,

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

Thanks,
Paolo.

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

        PR c++/53122
        * g++.dg/cpp0x/auto35.C: New.
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...>;
+}

Reply via email to