From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 124305 invoked by alias); 8 Jul 2019 21:44:40 -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 124239 invoked by uid 89); 8 Jul 2019 21:44:37 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy= X-HELO: mail-qk1-f177.google.com Received: from mail-qk1-f177.google.com (HELO mail-qk1-f177.google.com) (209.85.222.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 08 Jul 2019 21:44:35 +0000 Received: by mail-qk1-f177.google.com with SMTP id r6so14538182qkc.0 for ; Mon, 08 Jul 2019 14:44:35 -0700 (PDT) Return-Path: Received: from [192.168.1.116] (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 42sm9285266qtm.27.2019.07.08.14.44.32 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 08 Jul 2019 14:44:33 -0700 (PDT) Subject: Re: [C++ Patch] A few additional location improvements to grokdeclarator and check_tag_decl To: Paolo Carlini , "gcc-patches@gcc.gnu.org" References: <75c69855-965c-6c03-fe95-905af5d15cc0@oracle.com> From: Jason Merrill Message-ID: Date: Mon, 08 Jul 2019 21:56:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <75c69855-965c-6c03-fe95-905af5d15cc0@oracle.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg00621.txt.bz2 On 6/23/19 7:58 AM, Paolo Carlini wrote: > + error_at (smallest_type_location (get_type_quals (declspecs), > + declspecs->locations), How about adding a smallest_type_location overload that just takes declspecs? Jason