From patchwork Wed Oct 10 13:27:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Carlini X-Patchwork-Id: 190639 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id B1C4B2C0084 for ; Thu, 11 Oct 2012 00:27:56 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1350480477; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Message-ID:Date:From:User-Agent:MIME-Version: To:Subject:Content-Type:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=3O+9kglLJIr7d3yBwhOxAhYe6xM=; b=KOts7jB7QgPZ9ma sR4jZiQaVO94xs7jlU2yS14w4A3LZFXga4klVlC7QWuyzt8yFcynZ7SxrYGOvEpS 2yzQtI/Y3TswhO1geCRyZ8M9FZygKHlNhvHor25EssgsBBvjpzh9sU06+AdeTXde 1b+8j8/d1+MNyPn0UrzcgdoU/f2w= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=ffYBbpklsdhhlul07QmNHhdaGCxvEmlN6mP3XJvbZCUR0fuVPsFyETbkSRzpwI Ftq43V4b+Iep5h8fNvs8Q4sqEmppZCzb5z/JwLKKn7WRR4xXVWCy3Qt+tLv4zJt9 cRaBYzJtpNj3qI+xoUeEzIZ1pH3EBn5Hgbx84S1A+LoOo=; Received: (qmail 28314 invoked by alias); 10 Oct 2012 13:27:51 -0000 Received: (qmail 28303 invoked by uid 22791); 10 Oct 2012 13:27:50 -0000 X-SWARE-Spam-Status: No, hits=-7.9 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_HI, RCVD_IN_HOSTKARMA_NO, RCVD_IN_HOSTKARMA_YE, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from acsinet15.oracle.com (HELO acsinet15.oracle.com) (141.146.126.227) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 10 Oct 2012 13:27:44 +0000 Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q9ADRg6x005988 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 10 Oct 2012 13:27:42 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q9ADRfOf028123 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 10 Oct 2012 13:27:41 GMT Received: from abhmt105.oracle.com (abhmt105.oracle.com [141.146.116.57]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q9ADReoQ030445 for ; Wed, 10 Oct 2012 08:27:40 -0500 Received: from [192.168.1.4] (/79.43.235.203) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 10 Oct 2012 06:27:40 -0700 Message-ID: <507577CA.6090004@oracle.com> Date: Wed, 10 Oct 2012 15:27:38 +0200 From: Paolo Carlini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120825 Thunderbird/15.0 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" Subject: [C++ testcase] PR 53122 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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; +}