[Bug tree-optimization/23331] FIXME from tree-ssa-ccp: dealing with "a"[3]

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Aug 20 14:04:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-20 13:54 -------
Testcase:
int f(void)
{
  int a = 13;
  return "a"[a];
}

This should be converted over to:
int f(void)
{
  __builtin_trap ();
}

-- 


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



More information about the Gcc-bugs mailing list