From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27540 invoked by alias); 13 Mar 2013 11:46:45 -0000 Received: (qmail 27462 invoked by uid 22791); 13 Mar 2013 11:46:44 -0000 X-SWARE-Spam-Status: No, hits=-5.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from userp1040.oracle.com (HELO userp1040.oracle.com) (156.151.31.81) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 13 Mar 2013 11:46:32 +0000 Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r2DBkVad018376 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 13 Mar 2013 11:46:31 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r2DBkUne024522 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 13 Mar 2013 11:46:31 GMT Received: from abhmt113.oracle.com (abhmt113.oracle.com [141.146.116.65]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r2DBkU6f028566 for ; Wed, 13 Mar 2013 06:46:30 -0500 Received: from [192.168.1.4] (/79.40.56.239) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 13 Mar 2013 04:46:29 -0700 Message-ID: <51406714.9010106@oracle.com> Date: Wed, 13 Mar 2013 11:46:00 -0000 From: Paolo Carlini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" Subject: [C++ testcase, committed] PR 56611 Content-Type: multipart/mixed; boundary="------------010209070509000009090705" X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2013-03/txt/msg00457.txt.bz2 This is a multi-part message in MIME format. --------------010209070509000009090705 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 128 Hi, I'm committing the testcase and closing the issue as already fixed in mainline. Thanks, Paolo. //////////////////////// --------------010209070509000009090705 Content-Type: text/plain; charset=UTF-8; name="CL_56611" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="CL_56611" Content-length: 107 2013-03-13 Paolo Carlini PR c++/56611 * g++.dg/cpp0x/alias-decl-32.C: New. --------------010209070509000009090705 Content-Type: text/plain; charset=UTF-8; name="patch_56611" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch_56611" Content-length: 926 Index: g++.dg/cpp0x/alias-decl-32.C =================================================================== --- g++.dg/cpp0x/alias-decl-32.C (revision 0) +++ g++.dg/cpp0x/alias-decl-32.C (working copy) @@ -0,0 +1,25 @@ +// PR c++/56611 +// { dg-do compile { target c++11 } } + +template struct remove_reference { typedef T type; }; +template struct remove_reference { typedef T type; }; +template T declval() { return T(); } + +int f(int, int){return 0;} +struct Func{}; + +template struct result1 +{ + typedef decltype(f(declval::type>()...)) type; +}; + +template using result2 += decltype(f(declval::type>()...)); + +template struct R; +template struct R< This(Args...) > +{ + typedef result2 type; +}; + +typedef R< Func(int, int) >::type R_type; --------------010209070509000009090705--