Bug 21381 - Internal compiler error: in set_value_range
Summary: Internal compiler error: in set_value_range
Status: RESOLVED DUPLICATE of bug 21030
Alias: None
Product: gcc
Classification: Unclassified
Component: tree-optimization (show other bugs)
Version: 4.1.0
: P2 normal
Target Milestone: 4.1.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2005-05-04 15:03 UTC by Mick Pont
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mick Pont 2005-05-04 15:03:14 UTC
Compiling this code (AMD64 under SuSE Linux Professional 9.1):

      SUBROUTINE OPTBUG(N,A,LDA,B,LDB)
C     .. Scalar Arguments ..
      INTEGER                 LDA, LDB, N
C     .. Array Arguments ..
      REAL                    A(LDA,N), B(LDB,N)
C     .. Local Scalars ..
      REAL                    A1
      INTEGER                 I, J
C     .. Executable Statements ..
      DO 40 J = 1, N
         DO 20 I = 1, J
            A1 = A(I,J)
            B(I,J) = A1
  20     CONTINUE
  40  CONTINUE
      RETURN
      END

with optimization level -O2 or above, like this:

  gfortran -v -Wall -O2 -c optbug.f

gives the following error message:

Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc/configure --prefix=/var/tmp/gfortran-20050422/irun
--enable-languages=c,f95
Thread model: posix
gcc version 4.1.0 20050422 (experimental)
 /opt/gfortran/irun/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.1.0/f951
optbug.f -ffixed-form -quiet -dumpbase optbug.f -mtune=k8 -auxbase optbug -O2
-Wall -version -o /tmp/ccGwsoUd.s
GNU F95 version 4.1.0 20050422 (experimental) (x86_64-unknown-linux-gnu)
        compiled by GNU C version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
optbug.f: In function ‘optbug’:
optbug.f:1: internal compiler error: in set_value_range, at tree-vrp.c:124
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Comment 1 Andrew Pinski 2005-05-04 15:05:39 UTC

*** This bug has been marked as a duplicate of 21030 ***