This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/31058] bogus array overflow warnings in unreachable code



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]