[Bug bootstrap/18371] New: array subscript out of range

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Mon Nov 8 08:41:00 GMT 2004


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



More information about the Gcc-bugs mailing list