https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83945
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2018-01-19
CC| |jakub at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Cleaned up testcase which still ICEs with -O2 on the current trunk:
struct S { int a[1]; };
__thread struct T { int c; } e;
int f;
void bar (int);
void
foo (int f, int x)
{
struct S *h = (struct S *) &e.c;
for (;;)
{
int *a = h->a, i;
for (i = x; i; i--)
bar (a[f]);
bar (a[f]);
}
}