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

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Yes the warning is really still correct even if a closer testcase would be:
```
int f(struct {int t;} *b)
{
  return b->t;
}

int f1(void *a)
{
  return f(a);
}
```
I am actually shocked clang didn't implement this warning since there is no
type which is compatible with the typeof *b outside of function f.

Reply via email to