This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/18371] New: array subscript out of range
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Nov 2004 08:41:37 -0000
- Subject: [Bug bootstrap/18371] New: array subscript out of range
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hello there,
I just tried to compile gcc 343 with the Intel C 8.1 compiler.
The Intel compiler said
../../src/gcc-3.4.3/gcc/config/i386/i386.c(10626): warning #175: subscript out
of range
../../src/gcc-3.4.3/gcc/config/i386/i386.c(10629): warning #175: subscript out
of range
The source code is
long l[3];
/* ... */
+ ((((HOST_WIDE_INT) l[3]) << 31) << 1),
/* ... */
parts[1] = immed_double_const (l[2], l[3], DImode);
In fact, l[ 3] does not exist. Suggest code re-work.
--
Summary: array subscript out of range
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18371