From patchwork Wed Oct 10 13:27:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [C++,testcase] PR 53122 X-Patchwork-Submitter: Paolo Carlini X-Patchwork-Id: 190639 Message-Id: <507577CA.6090004@oracle.com> To: "gcc-patches@gcc.gnu.org" Date: Wed, 10 Oct 2012 15:27:38 +0200 From: Paolo Carlini List-Id: Hi, adding the testcase and closing the PR as fixed in mainline. Thanks, Paolo. ////////////////// 2012-10-10 Paolo Carlini 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 + void foo(Args&&...) { } + +template + void bar(Args&&...) +{ + auto fn = foo; +}