From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 124245 invoked by alias); 10 Oct 2015 11:46:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 121842 invoked by uid 48); 10 Oct 2015 11:46:39 -0000 From: "anlauf at gmx dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/64097] Bug with nested WHERE constructs Date: Sat, 10 Oct 2015 11:46:00 -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: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gmx dot de X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-10/txt/msg00778.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64097 --- Comment #2 from Harald Anlauf --- (In reply to Dominique d'Humieres from comment #1) > WORKSFORME on x86_64-apple-darwin14 with 4.8 up to trunk (6.0) and the > various options I tried: > > [Book15] f90/bug% gfortran pr64097.f90 -fcheck=all -fsanitize=address > [Book15] f90/bug% a.out > 0 > 58 > > gfortran is 5.2. I think the trapping of exceptions must be enabled. % gfortran --version GNU Fortran (GCC) 5.1.0 % gfortran -O -march=native -g -ffpe-trap=zero,overflow,invalid nested-where.f90 && ./a.out 0 Program received signal SIGFPE: Floating-point exception - erroneous arithmetic operation. Backtrace for this error: #0 0x7F09C1E59B97 #1 0x7F09C1E58D90 #2 0x7F09C1430F4F #3 0x7F09C1BE7277 #4 0x7F09C1BEBE50 #5 0x400A34 in MAIN__ at nested-where.f90:0 Floating exception Without -ffpe-trap=... I get the same as you.