This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/81838] New: [7/8 Regression] doduc.f90 undefined behavior warning


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 ***

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]