From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28488 invoked by alias); 5 Aug 2014 12:10:14 -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 28468 invoked by uid 89); 5 Aug 2014 12:10:11 -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,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: userp1040.oracle.com Received: from userp1040.oracle.com (HELO userp1040.oracle.com) (156.151.31.81) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 05 Aug 2014 12:10:09 +0000 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s75CA6C3024138 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 5 Aug 2014 12:10:07 GMT Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s75CA5A6026877 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 5 Aug 2014 12:10:06 GMT Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s75CA5YX026858; Tue, 5 Aug 2014 12:10:05 GMT Received: from [192.168.1.4] (/79.52.196.68) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 05 Aug 2014 05:10:05 -0700 Message-ID: <53E0C99A.4060003@oracle.com> Date: Tue, 05 Aug 2014 12:10:00 -0000 From: Paolo Carlini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Jason Merrill , "gcc-patches@gcc.gnu.org" Subject: Re: [C++ Patch/RFC] PR 43906 References: <53DFB3AE.1030706@oracle.com> <53DFF100.6010105@redhat.com> <53E010B2.6050703@oracle.com> <53E03A36.5080203@redhat.com> <53E0C4C4.3010101@oracle.com> In-Reply-To: <53E0C4C4.3010101@oracle.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00345.txt.bz2 .. a clarification. As I tried to briefly explain yesterday, this kind of change means that: extern void z(); void il() { if (z != (void*)0) z(); } doesn't trigger anymore the pedwarn at beginning of composite_pointer_type about the comparison itself, for the simple reason that we don't call it anymore. I suppose that's Ok. Otherwise we have to change something, it's a bit tricky tough. We could even decide that we don't want to handle the above for -Waddress because conceptually the issue with the comparison itself comes before, as again I tried to explain a bit yesterday, but that triggers a warning only with -pedantic (EDG has it by default). Paolo.