From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23870 invoked by alias); 15 Apr 2014 14:13:20 -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 23857 invoked by uid 89); 15 Apr 2014 14:13:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mail2-relais-roc.national.inria.fr Received: from mail2-relais-roc.national.inria.fr (HELO mail2-relais-roc.national.inria.fr) (192.134.164.83) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Tue, 15 Apr 2014 14:13:17 +0000 Received: from stedding.saclay.inria.fr ([193.55.250.194]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 15 Apr 2014 16:13:14 +0200 Received: from glisse (helo=localhost) by stedding.saclay.inria.fr with local-esmtp (Exim 4.82) (envelope-from ) id 1Wa46s-0007tK-8M; Tue, 15 Apr 2014 16:13:14 +0200 Date: Tue, 15 Apr 2014 14:13:00 -0000 From: Marc Glisse To: Jason Merrill cc: gcc-patches List Subject: Re: C++ PATCH for c++/51747 (list-initialization from same type) In-Reply-To: <534D3BB2.3040204@redhat.com> Message-ID: References: <53483236.7030700@redhat.com> <534D3BB2.3040204@redhat.com> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-SW-Source: 2014-04/txt/msg00790.txt.bz2 On Tue, 15 Apr 2014, Jason Merrill wrote: > On 04/14/2014 06:02 PM, Marc Glisse wrote: >> shouldn't the same also apply if VECTOR_TYPE_P (type), not just for >> CLASS_TYPE_P (type)? > > Sure. Do you want to make that change? I can add || VECTOR_TYPE_P (type), yes, but I thought you might have ideas about other cases that might have been forgotten, maybe arrays or something (I didn't have time to test any further), and thus on what the right test should be. If it is just vectors I'll prepare a patch with a simple testcase. -- Marc Glisse