From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30736 invoked by alias); 6 Mar 2015 08:37:04 -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 30682 invoked by uid 89); 6 Mar 2015 08:37:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: aserp1040.oracle.com Received: from aserp1040.oracle.com (HELO aserp1040.oracle.com) (141.146.126.69) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 06 Mar 2015 08:37:01 +0000 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t268awJW008779 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 6 Mar 2015 08:36:59 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id t268avxD026376 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 6 Mar 2015 08:36:57 GMT Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t268avRb029882; Fri, 6 Mar 2015 08:36:57 GMT Received: from [192.168.1.4] (/79.8.230.116) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 06 Mar 2015 00:36:52 -0800 Message-ID: <54F9671B.1040002@oracle.com> Date: Fri, 06 Mar 2015 08:37:00 -0000 From: Paolo Carlini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" CC: Jason Merrill Subject: [C++ Patch] PR 65323 Content-Type: multipart/mixed; boundary="------------030600070106040906080003" X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg00334.txt.bz2 This is a multi-part message in MIME format. --------------030600070106040906080003 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-length: 639 Hi, this is a regression about duplicate warnings with -Wzero-as-null-pointer-constant. The regression is rather old, affects 4_8-branch too, and started when check_default_argument got a perform_implicit_conversion_flags call which warns a first time, then maybe_warn_zero_as_null_pointer_constant as called by check_default_argument itself warns a second time. The latter call is even older, dates back to c++/52718, I think we can now safely remove it and keep on returning nullptr_node to avoid warning later still at the call sites (that was the point of c++/52718). Tested x86_64-linux. Thanks, Paolo. /////////////////// --------------030600070106040906080003 Content-Type: text/plain; charset=UTF-8; name="patch_65323" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="patch_65323" Content-length: 859 SW5kZXg6IGRlY2wuYwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBkZWNs LmMJKHJldmlzaW9uIDIyMTIzMCkKKysrIGRlY2wuYwkod29ya2luZyBjb3B5 KQpAQCAtMTEyMjcsMTEgKzExMjI3LDkgQEAgY2hlY2tfZGVmYXVsdF9hcmd1 bWVudCAodHJlZSBkZWNsLCB0cmVlIGFyZywgdHN1YnMKIAkJCQkgICAgIExP T0tVUF9JTVBMSUNJVCk7CiAgIC0tY3BfdW5ldmFsdWF0ZWRfb3BlcmFuZDsK IAotICBpZiAod2Fybl96ZXJvX2FzX251bGxfcG9pbnRlcl9jb25zdGFudAot ICAgICAgJiYgVFlQRV9QVFJfT1JfUFRSTUVNX1AgKGRlY2xfdHlwZSkKKyAg aWYgKFRZUEVfUFRSX09SX1BUUk1FTV9QIChkZWNsX3R5cGUpCiAgICAgICAm JiBudWxsX3B0cl9jc3RfcCAoYXJnKQotICAgICAgJiYgKGNvbXBsYWluICYg dGZfd2FybmluZykKLSAgICAgICYmIG1heWJlX3dhcm5femVyb19hc19udWxs X3BvaW50ZXJfY29uc3RhbnQgKGFyZywgaW5wdXRfbG9jYXRpb24pKQorICAg ICAgJiYgIU5VTExQVFJfVFlQRV9QIChUUkVFX1RZUEUgKGFyZykpKQogICAg IHJldHVybiBudWxscHRyX25vZGU7CiAKICAgLyogW2RjbC5mY3QuZGVmYXVs dF0K --------------030600070106040906080003--