[Bug tree-optimization/89500] [9 Regression] ICE: tree check: expected integer_cst, have ssa_name in get_len, at tree.h:5653

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 25 20:39:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89500

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Even better testcase without any UB in it:

typedef __SIZE_TYPE__ size_t;
extern size_t strlen (const char *);
extern size_t strnlen (const char *, size_t);
extern void bar (char *);

void
foo (int *a)
{
  char c[64];
  bar (c);
  a[0] = strlen (c);
  a[1] = strnlen (c, 0);
}


More information about the Gcc-bugs mailing list