This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/81838] New: [7/8 Regression] doduc.f90 undefined behavior warning
- From: "LpSolit at netscape dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 13 Aug 2017 15:30:16 +0000
- Subject: [Bug fortran/81838] New: [7/8 Regression] doduc.f90 undefined behavior warning
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81838
Bug ID: 81838
Summary: [7/8 Regression] doduc.f90 undefined behavior warning
Product: gcc
Version: 8.0
Status: RESOLVED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: tkoenig at gcc dot gnu.org
Target Milestone: ---
Status: RESOLVED
Resolution: DUPLICATE
Compiling doduc.f90 from the pb11 benchmark suite results in the
warning
$ gfortran -O -Waggressive-loop-optimizations doduc.f90
doduc.f90:3587:0:
QUGii(ij) = 0.
Warning: iteration 2 invokes undefined behavior
[-Waggressive-loop-optimizations]
doduc.f90:3586:0:
DO ij = 1 , 3
note: within this loop
The loop itself looks innocent enough:
ELSE
DO ij = 1 , 3
QUGii(ij) = 0.
QCOni(ij) = 0.
ENDDO
GOTO 600
--- Comment #1 from Frédéric Buclin <LpSolit at netscape dot net> ---
duplicate
*** This bug has been marked as a duplicate of bug 81839 ***