From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 42689 invoked by alias); 7 Jan 2019 19:22:24 -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 42659 invoked by uid 89); 7 Jan 2019 19:22:23 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy= X-HELO: mail-qt1-f180.google.com Received: from mail-qt1-f180.google.com (HELO mail-qt1-f180.google.com) (209.85.160.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 07 Jan 2019 19:22:22 +0000 Received: by mail-qt1-f180.google.com with SMTP id d19so1733495qtq.9 for ; Mon, 07 Jan 2019 11:22:22 -0800 (PST) Return-Path: Received: from [192.168.1.115] (209-6-216-142.s141.c3-0.smr-cbr1.sbo-smr.ma.cable.rcncustomer.com. [209.6.216.142]) by smtp.gmail.com with ESMTPSA id k16sm5652825qkj.38.2019.01.07.11.22.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Jan 2019 11:22:20 -0800 (PST) Subject: Re: C++ PATCH for c++/88741 - wrong error with initializer-string To: Marek Polacek , GCC Patches , David Malcolm References: <20190107190930.GD28316@redhat.com> From: Jason Merrill Message-ID: <8a0689c8-87a6-11c4-c826-c32ce5754bd7@redhat.com> Date: Mon, 07 Jan 2019 19:22:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: <20190107190930.GD28316@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-01/txt/msg00335.txt.bz2 On 1/7/19 2:09 PM, Marek Polacek wrote: > This fixes c++/88741, a bogus error with using [] in a template. > Starting with the "more location wrapper nodes" patch, cp_complete_array_type > can now receive a V_C_E in a CONSTRUCTOR, instead of just {"test"}, so we need > to strip any location wrappers as elsewhere for this code to work. > > Bootstrapped/regtested on x86_64-linux, ok for trunk? OK. Jason