From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 78051397203D; Thu, 14 May 2020 17:08:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 78051397203D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1589476132; bh=4gWKSS/LfPYJF2DjdABQm6osPWzs103n0KTVEHkV2BU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GcFb0by40SnAX8fc+kNK5DRSx/oKIQglPeqwrRvyqv/92yhZcARB0P2iimxNvwHkb 42FzEngBbl6DRk7p1uHnROPhT1AHrkaquSpVkaGPNgJ3IslEPSGNgCD3K1jYrMtCQI O02HDjsRGMBIoC3UoIoG2SHIvIFtYHxijyRRXPTo= From: "sgk at troutmask dot apl.washington.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/95053] [11 regression] ICE in f951: gfc_divide() Date: Thu, 14 May 2020 17:08:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sgk at troutmask dot apl.washington.edu X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: anlauf at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 May 2020 17:08:52 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95053 --- Comment #23 from Steve Kargl = --- On Thu, May 14, 2020 at 02:57:37PM +0000, wschmidt at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95053 >=20 > Bill Schmidt changed: >=20 > What |Removed |Added > -------------------------------------------------------------------------= --- > CC| |wschmidt at gcc dot gnu.= org >=20 > --- Comment #22 from Bill Schmidt --- > Breaking legitimate code, even if "borderline," does not seem right to me= .=20=20 > Zero division is generally a runtime exception because of such cases. >=20 > You write code for a general case, then later you discover "oh, well, we = could > make this variable zero for our specific usage," and now the compiler thr= ows a > fit? Seems like this is warning-level stuff. >=20 If Bill's reduction of the several thousand-line file to 10ish lines is an accurate reduction (and I have no reasons to doubt that it isn't), then no. It is an programming error. This is not the first time that gfortran has found a programming error in WRF. Sure, in this case the 'if (cdleps > 0)' leads to dead code elimination, but DCE happens after gfortran has done some constant folding and common subexpression elimination in the front-end.=