fortran/893: Preliminary loop exit compiled wrongly
toon@moene.indiv.nluug.nl
toon@moene.indiv.nluug.nl
Sun Nov 26 08:36:00 GMT 2000
>Number: 893
>Category: fortran
>Synopsis: Preliminary loop exit compiled wrongly
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 26 08:36:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: Martin Kahlert
>Release: current snapshots
>Organization:
>Environment:
i?86-linux
>Description:
The following code:
DOUBLE PRECISION VALUE(2), TOLD, BK
DATA VALUE /0D0, 1D0/
DATA TOLD /0D0/
DO I=1, 2
BK = VALUE(I)
IF(BK .GT. TOLD) GOTO 10
ENDDO
WRITE(*,*)'Error: BK = ', BK
CALL ABORT
10 CONTINUE
WRITE(*,*)'No Error: BK = ', BK
END
which is g77 (execute) testsuite item 20001111.f compiles
wrongly on i?86-linux with any optimisation on.
>How-To-Repeat:
g77 -O 20001111.f
on i?86-linux
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list