From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 71270 invoked by alias); 29 Jun 2017 21:46:55 -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 71254 invoked by uid 89); 29 Jun 2017 21:46:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.2 spammy= X-HELO: mail-it0-f49.google.com Received: from mail-it0-f49.google.com (HELO mail-it0-f49.google.com) (209.85.214.49) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 29 Jun 2017 21:46:54 +0000 Received: by mail-it0-f49.google.com with SMTP id m84so15044435ita.0 for ; Thu, 29 Jun 2017 14:46:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=alyJU151H87e88taRZ4hjGAXbDYFKJlxqkZbCUQNyrI=; b=OF9O8Acg9PHomSiRThYqRATYD5MyedmJW15P10rXDO9VlFxZAFreaH2gCHv5vTacz0 gCVWerme0k+amWL60GX258j3N7zHqaoBraJzHGX7DvWmD67BX2dPxqZMvPbb/8eG1FfR 1akMz86N3exYowr3fy9RgRtU82lThxoiENpRIXEeoeuRmAAEWF5whkq2bXgEmcau8A4+ NkWI4cVS0vzM3GUpSVB3LcvR+XuwJ0d0yaMfkFHdP52XDgClCGKgGFE7IkBdFslVSAsI wIpNACt3CiIFp7rcnOOoZx4i+vuaAXeZmq0Or9JMyN7kKXbk8XrpZjDouYadmcvYgoU5 W1jA== X-Gm-Message-State: AKS2vOwzFeEzTfmuxzbJx63g9zRIp7yNVeoAvsgA43s0feAk4gNaSi9e 5MbLLlGdQWwLc7f+wR7ndQKKQkjbTqakAWc= X-Received: by 10.36.29.147 with SMTP id 141mr69988itj.83.1498772812523; Thu, 29 Jun 2017 14:46:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.11.105 with HTTP; Thu, 29 Jun 2017 14:46:31 -0700 (PDT) In-Reply-To: <8407427e-d71a-e7ab-80b4-c43241044918@oracle.com> References: <8407427e-d71a-e7ab-80b4-c43241044918@oracle.com> From: Jason Merrill Date: Thu, 29 Jun 2017 21:46:00 -0000 Message-ID: Subject: Re: [C++ Patch] Replace a few more error + error with error + inform To: Paolo Carlini Cc: "gcc-patches@gcc.gnu.org" Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2017-06/txt/msg02333.txt.bz2 OK. On Fri, May 19, 2017 at 12:13 PM, Paolo Carlini wrote: > Hi, > > while looking into some bugs (eg, c++/71464) I noticed a few more of those > consecutive errors, which I propose to adjust per the below patchlet. The > second case in add_method is a bit tricky because in principle we'd really > like to be more specific (eg, clang talks about constructors which cannot be > redeclared, member functions which cannot be redeclared and many more) and > avoid verbose diagnostic, but in the below I only try to avoid emitting > error + error... Tested x86_64-linux. > > Thanks, Paolo. > > ///////////////////// > >