[Bug c/8268] no compile time array index checking

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Feb 18 12:28:00 GMT 2006



------- Comment #20 from rguenth at gcc dot gnu dot org  2006-02-18 12:28 -------
Also make sure not to trip on

typedef struct {
  int len;
  char str[4];
} String;

char foo(String *s)
{
  return s->str[42];
}


-- 


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



More information about the Gcc-bugs mailing list