From: "Dominique d'Humières" <dominiq@lps.ens.fr>
To: Thomas Koenig <tkoenig@netcologne.de>
Cc: gfortran <fortran@gcc.gnu.org>, gcc-patches <gcc-patches@gcc.gnu.org>
Subject: Re: [patch, fortran] Simplify constants which come from parameter arrays
Date: Wed, 28 Mar 2018 15:53:00 -0000 [thread overview]
Message-ID: <51CF16C7-D140-45B3-A4BC-72FA60FF4E9A@lps.ens.fr> (raw)
Hi Thomas,
If I am not mistaken, the patch causes:
FAIL: gfortran.dg/pr71935.f90 -O (test for excess errors)
FAIL: gfortran.dg/substr_6.f90 -O0 execution test
FAIL: gfortran.dg/substr_6.f90 -O1 execution test
FAIL: gfortran.dg/substr_6.f90 -O2 execution test
FAIL: gfortran.dg/substr_6.f90 -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions execution test
FAIL: gfortran.dg/substr_6.f90 -O3 -g execution test
FAIL: gfortran.dg/substr_6.f90 -Os execution test
For gfortran.dg/pr71935.f90 I get two additional errors on top of the expected warnings:
/opt/gcc/_clean/gcc/testsuite/gfortran.dg/pr71935.f90:5:21:
print *, sizeof(z(3)) ! { dg-warning "is out of bounds" }
1
Warning: Array reference at (1) is out of bounds (3 > 2) in dimension 1
/opt/gcc/_clean/gcc/testsuite/gfortran.dg/pr71935.f90:5:21:
print *, sizeof(z(3)) ! { dg-warning "is out of bounds" }
1
Error: Index in dimension 1 is out of bounds at (1)
/opt/gcc/_clean/gcc/testsuite/gfortran.dg/pr71935.f90:6:23:
print *, c_sizeof(z(3)) ! { dg-warning "is out of bounds" }
1
Warning: Array reference at (1) is out of bounds (3 > 2) in dimension 1
/opt/gcc/_clean/gcc/testsuite/gfortran.dg/pr71935.f90:6:23:
print *, c_sizeof(z(3)) ! { dg-warning "is out of bounds" }
1
Error: Index in dimension 1 is out of bounds at (1)
For gfortran.dg/substr_6.f90, I reach STOP 1 when running the executable.
TIA
Dominique
next reply other threads:[~2018-03-28 15:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-28 15:53 Dominique d'Humières [this message]
2018-03-31 11:57 ` Thomas König
2018-04-03 15:22 ` Dominique d'Humières
2018-04-03 21:20 ` Thomas König
2018-04-09 20:26 ` Thomas König
2018-04-09 20:26 ` Steve Kargl
2018-04-09 21:17 ` Thomas König
-- strict thread matches above, loose matches on Subject: below --
2018-03-25 10:46 Thomas König
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=51CF16C7-D140-45B3-A4BC-72FA60FF4E9A@lps.ens.fr \
--to=dominiq@lps.ens.fr \
--cc=fortran@gcc.gnu.org \
--cc=gcc-patches@gcc.gnu.org \
--cc=tkoenig@netcologne.de \
/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).