From 42424495b98adeec6a09433bd08e8228722251d7 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Wed, 10 Oct 2012 13:25:34 +0000 Subject: [PATCH] re PR c++/53122 (internal compiler error: in unify, at cp/pt.c:15750) 2012-10-10 Paolo Carlini PR c++/53122 * g++.dg/cpp0x/auto35.C: New. From-SVN: r192312 --- gcc/testsuite/ChangeLog | 7 ++++++- gcc/testsuite/g++.dg/cpp0x/auto35.C | 11 +++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 gcc/testsuite/g++.dg/cpp0x/auto35.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index efa00b590c95..2d6562470731 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,4 +1,9 @@ -2012-10-09 Dodji Seketeli +2012-10-10 Paolo Carlini + + PR c++/53122 + * g++.dg/cpp0x/auto35.C: New. + +2012-10-10 Dodji Seketeli 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 index 000000000000..55eebbeffedc --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/auto35.C @@ -0,0 +1,11 @@ +// PR c++/53122 +// { dg-do compile { target c++11 } } + +template + void foo(Args&&...) { } + +template + void bar(Args&&...) +{ + auto fn = foo; +} -- 2.47.2