[Bug target/108189] anonymous struct declared inside parameter list will not be visible outside of this definition or declaration
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Dec 20 20:56:13 GMT 2022
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.
More information about the Gcc-bugs
mailing list