[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:48:34 GMT 2022


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |MOVED

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
clang does not implement the warning even though it is a correct warning.
Witness:
int f(struct {int t;} b)
{
  return b.t;
}

int f1(void)
{
  return f((struct {int t;}){1});
}
Is rejected.


More information about the Gcc-bugs mailing list