[Bug middle-end/24851] [4.1 Regression] f2c miscompilation

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Nov 16 09:39:00 GMT 2005



------- Comment #16 from rguenth at gcc dot gnu dot org  2005-11-16 09:39 -------
Is the second reduced testcase not fine from a standards POV?  I.e.

void abort(void);
int main()
{
  int a[10], *p, *q;
  q = &a[1];
  p = &q[-1];
  if (p >= &a[9])
    abort ();
  return 0;
}

or does "array" in the standard refer to q[0]..q[8] here?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24851



More information about the Gcc-bugs mailing list