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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Better testcase (no UB, warning free):

struct S { int s; int t; };
__thread struct S a[10];
int b;

void
foo ()
{
  int c = a[b].t;
  (void) c;
}

Reply via email to