Bug 176947 - ICE in referenced_var_lookup when compiling with gfortran
Summary: ICE in referenced_var_lookup when compiling with gfortran
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 4
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-01-04 17:01 UTC by Alexander Täschner
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version: 4.1.0-0.14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-01-09 18:52:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Alexander Täschner 2006-01-04 17:01:51 UTC
The following code produces an ICE when compiled with gfortran using the -O and
-fno-automatic flags together. This bug exists in gfortran 4.1.0-0.12, but not
in 4.0.2-8.

$ cat hwhew2.f
      SUBROUTINE HWHEW2(NPART)
      IMPLICIT NONE
      COMPLEX PT5,ZT,ZI
      DOUBLE PRECISION WRN(7)
      INTEGER J,I,NPART,IP1

      DO 11 I=1,NPART-1
      IP1=I+1
      DO 11 J=IP1,NPART

      IF(WRN(I).LT.0) ZT=ZT*ZI
      IF(WRN(J).LT.0) ZT=ZT*ZI

      PT5=CMPLX(.5,0.)

   11 CONTINUE

      RETURN
      END
$ gfortran -c -O -fno-automatic hwhew2.f
hwhew2.f: In function 'hwhew2':
hwhew2.f:1: internal compiler error: in referenced_var_lookup, at tree-dfa.c:591
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.

Comment 1 Alexander Täschner 2006-01-09 18:52:11 UTC
Seems to be fixed in 4.1.0-0.14. I hope it will not reappear in a new version.


Note You need to log in before you can comment on or make changes to this bug.