This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/31058] bogus array overflow warnings in unreachable code
- From: "rakdver at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Mar 2007 09:15:25 -0000
- Subject: [Bug middle-end/31058] bogus array overflow warnings in unreachable code
- References: <bug-31058-12049@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from rakdver at gcc dot gnu dot org 2007-03-07 09:15 -------
The same problem appears in the following testcase.
int a[100];
void test (int real_length_of_a)
{
int x = 110;
if (x < real_length_of_a)
a[x]++;
}
--
rakdver at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|array overflow warning due |bogus array overflow
|to incorrect loop unrolling |warnings in unreachable code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31058