From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27301 invoked by alias); 4 May 2015 20:29:01 -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 27247 invoked by uid 89); 4 May 2015 20:29:00 -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,SPF_HELO_PASS,SPF_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; Mon, 04 May 2015 20:28:59 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t44KSv35030316 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 4 May 2015 16:28:58 -0400 Received: from [10.3.112.12] ([10.3.112.12]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t44KSuOK007816; Mon, 4 May 2015 16:28:57 -0400 Message-ID: <5547D688.5060909@redhat.com> Date: Mon, 04 May 2015 20:29:00 -0000 From: Jason Merrill User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Paolo Carlini , "gcc-patches@gcc.gnu.org" CC: Jakub Jelinek Subject: Re: [C++ Patch] PR 66007 References: <5547B7B9.5000700@oracle.com> In-Reply-To: <5547B7B9.5000700@oracle.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2015-05/txt/msg00253.txt.bz2 On 05/04/2015 01:17 PM, Paolo Carlini wrote: > This regression is a more subtle variant of c++/65858: if the user > passes -Wno-error=narrowing the pedwarn didn't result in an actual error > (even if we are forcing -pedantic-errors around it) but produces anyway > a warning, thus returns true, and ok isn't set to true, thus we have a > miscompilation in this case too. Jakub suggested simply checking by hand > errorcount, which passes all my tests. OK. Jason