public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "anlauf at gmx dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/64097] Bug with nested WHERE constructs
Date: Sat, 10 Oct 2015 11:46:00 -0000 [thread overview]
Message-ID: <bug-64097-4-j6JpLYs3Q3@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-64097-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64097
--- Comment #2 from Harald Anlauf <anlauf at gmx dot de> ---
(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.
next prev parent reply other threads:[~2015-10-10 11:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-27 21:45 [Bug fortran/64097] New: " anlauf at gmx dot de
2015-10-10 10:56 ` [Bug fortran/64097] " dominiq at lps dot ens.fr
2015-10-10 11:46 ` anlauf at gmx dot de [this message]
2015-10-10 12:10 ` dominiq at lps dot ens.fr
2021-12-18 4:23 ` pinskia at gcc dot gnu.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-64097-4-j6JpLYs3Q3@http.gcc.gnu.org/bugzilla/ \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).