From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61888 invoked by alias); 8 Dec 2015 14:37:09 -0000 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 Received: (qmail 61766 invoked by uid 89); 8 Dec 2015 14:37:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 08 Dec 2015 14:37:08 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 52F0D8E222 for ; Tue, 8 Dec 2015 14:37:07 +0000 (UTC) Received: from localhost.localdomain (vpn1-5-49.ams2.redhat.com [10.36.5.49]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tB8Eb69k030282; Tue, 8 Dec 2015 09:37:06 -0500 Subject: Re: [PATCH] Add testcase for c++/68116 To: Marek Polacek , Jason Merrill References: <20151207174913.GO3175@redhat.com> <5666C4E9.2050204@redhat.com> <5666E605.5020403@redhat.com> <20151208142128.GP3175@redhat.com> Cc: GCC Patches From: Bernd Schmidt Message-ID: <5666EB11.9010101@redhat.com> Date: Tue, 08 Dec 2015 14:37:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151208142128.GP3175@redhat.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-12/txt/msg00874.txt.bz2 On 12/08/2015 03:21 PM, Marek Polacek wrote: >>>> +C::T C::b[] >>>> +{ >>>> + T (&C::foo) >>>> +}; >>> >>> The problem I have with approving C++ testcases is that I have no idea >>> whether this is valid or not or what it expresses. You should Cc Jason >>> (which I've now done). >> >> That's odd code--I don't approve of the cast in the initializer--but it is >> well-formed. OK. For all the other people who were clueless like me, apparently this is a thing called "list initialization" or "brace-init" that you can google for. Bernd