From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 36071 invoked by alias); 26 Sep 2017 16:52:02 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 34320 invoked by uid 89); 26 Sep 2017 16:52:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPAM_BODY,SPF_PASS autolearn=no version=3.3.2 spammy= X-Spam-User: qpsmtpd, 2 recipients X-HELO: cc-smtpout1.netcologne.de Received: from cc-smtpout1.netcologne.de (HELO cc-smtpout1.netcologne.de) (89.1.8.211) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 26 Sep 2017 16:52:00 +0000 Received: from cc-smtpin1.netcologne.de (cc-smtpin1.netcologne.de [89.1.8.201]) by cc-smtpout1.netcologne.de (Postfix) with ESMTP id 40DEE12856; Tue, 26 Sep 2017 18:51:56 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cc-smtpin1.netcologne.de (Postfix) with ESMTP id 3D5ED11DCF; Tue, 26 Sep 2017 18:51:56 +0200 (CEST) Received: from [78.35.161.68] (helo=cc-smtpin1.netcologne.de) by localhost with ESMTP (eXpurgate 4.1.9) (envelope-from ) id 59ca85ac-029d-7f0000012729-7f000001af20-1 for ; Tue, 26 Sep 2017 18:51:56 +0200 Received: from [192.168.178.20] (xdsl-78-35-161-68.netcologne.de [78.35.161.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by cc-smtpin1.netcologne.de (Postfix) with ESMTPSA; Tue, 26 Sep 2017 18:51:52 +0200 (CEST) Subject: Re: [patch, fortran] Warn about out-of-bounds access with DO subscripts To: Thomas Schwinge Cc: Jerry DeLisle , "fortran@gcc.gnu.org" , gcc-patches References: <4f751299-7191-7a49-0bbe-676d194d50a9@netcologne.de> <194995a1-88b3-b1a9-0e28-2e01d0d4d858@charter.net> <87r2uuj5d7.fsf@euler.schwinge.homeip.net> From: Thomas Koenig Message-ID: Date: Tue, 26 Sep 2017 16:52:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <87r2uuj5d7.fsf@euler.schwinge.homeip.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2017-09/txt/msg00117.txt.bz2 Hi! > On Mon, 25 Sep 2017 18:50:49 +0200, Thomas Koenig wrote: >> Thanks for the review, committed as r253156. >> >> Now, on to some other bugs... > > No, back to this one please. ;-) OK, if you insist :-) > Apparently, the changes you prepared for existing testcases did not get > committed, so I'm now seeing some FAILs there. See also recent posts on > the mailing list: > > FAIL: gfortran.dg/gomp/associate1.f90 -O (test for excess errors) > FAIL: gfortran.dg/predcom-1.f -O (test for excess errors) > FAIL: gfortran.dg/unconstrained_commons.f -O (test for excess errors) I have committed those changes, so that should be gone. > And the following gets highlighted, too: > > FAIL: compiler driver --help=fortran option(s): "^ +-.*[^:.]$" absent from output: " -Wdo-subscript Warn about possibly incorrect subscripts in do loops" > FAIL: compiler driver --help=warnings option(s): "^ +-.*[^:.]$" absent from output: " -Wdo-subscript Warn about possibly incorrect subscripts in do loops" This I don't understand. Was there anything wrong with my change to fortran/lang.opt? Regards Thomas