]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/53122 (internal compiler error: in unify, at cp/pt.c:15750)
authorPaolo Carlini <paolo@gcc.gnu.org>
Wed, 10 Oct 2012 13:25:34 +0000 (13:25 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 10 Oct 2012 13:25:34 +0000 (13:25 +0000)
2012-10-10  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r192312

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/auto35.C [new file with mode: 0644]

index efa00b590c95594fa6fdb95bfd0f245ff3d978fe..2d656247073192485a87403fb0d3c1a3b567073b 100644 (file)
@@ -1,4 +1,9 @@
-2012-10-09  Dodji Seketeli  <dodji@redhat.com>
+2012-10-10  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/53122
+       * g++.dg/cpp0x/auto35.C: New.
+
+2012-10-10  Dodji Seketeli  <dodji@redhat.com>
 
        PR c++/53540 - using fails to be equivalent to typedef
        * g++.dg/cpp0x/alias-decl-24.C: New test.
diff --git a/gcc/testsuite/g++.dg/cpp0x/auto35.C b/gcc/testsuite/g++.dg/cpp0x/auto35.C
new file mode 100644 (file)
index 0000000..55eebbe
--- /dev/null
@@ -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...>;
+}