From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3193 invoked by alias); 25 Apr 2018 17:50:43 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 3179 invoked by uid 89); 25 Apr 2018 17:50:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=H*f:sk:2bdcbea, H*i:sk:2bdcbea, HContent-Transfer-Encoding:8bit 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 ESMTP; Wed, 25 Apr 2018 17:50:41 +0000 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DA5C63003A38; Wed, 25 Apr 2018 17:50:39 +0000 (UTC) Received: from localhost (unknown [10.33.36.69]) by smtp.corp.redhat.com (Postfix) with ESMTP id 613F31001643; Wed, 25 Apr 2018 17:50:39 +0000 (UTC) Date: Wed, 25 Apr 2018 21:14:00 -0000 From: Jonathan Wakely To: Nathan Sidwell Cc: David Malcolm , Andrew Haley , gcc@gcc.gnu.org Subject: Re: [RFC] Deprecate "implicit int" for main() in C++ Message-ID: <20180425175038.GX20930@redhat.com> References: <20180425122305.GS20930@redhat.com> <7039f928-e50b-1f75-4f71-70fda5873ab0@redhat.com> <53171c2e-1d8d-91f7-c6f7-16273e8840a6@redhat.com> <20180425140452.GT20930@redhat.com> <736ee54e-fc2a-17f0-574a-6d889fdc2336@redhat.com> <20180425155420.GA12873@redhat.com> <1524673358.2961.4.camel@redhat.com> <20180425164530.GW20930@redhat.com> <2bdcbea9-307c-64cb-51b9-51b02eadae27@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2bdcbea9-307c-64cb-51b9-51b02eadae27@acm.org> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.1 (2017-09-22) X-SW-Source: 2018-04/txt/msg00173.txt.bz2 On 25/04/18 13:13 -0400, Nathan Sidwell wrote: >On 04/25/2018 12:45 PM, Jonathan Wakely wrote: > >>@@ -15869,6 +15851,12 @@ finish_function (bool inline_p) >>     { >>       warning (OPT_Wreturn_type, >>               "no return statement in function returning non-void"); >>+      if (DECL_NAME (fndecl) == assign_op_identifier) > >IDENTIFIER_ASSIGN_OP_P (DECL_NAME (fndecl)), so += and friends are >also caught? Thanks. I've included that in my patch and attached it to PR 85523.