[Bug c/90296] C11 anonymous struct not liked

tydeman at tybor dot com gcc-bugzilla@gcc.gnu.org
Wed May 1 07:57:00 GMT 2019


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

Fred J. Tydeman <tydeman at tybor dot com> changed:

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

--- Comment #1 from Fred J. Tydeman <tydeman at tybor dot com> ---
User misunderstood C standard.  struct b should be:

struct b {
  int x;
  struct {  /* anonymous */
    int y;
  };
  int z;
};


More information about the Gcc-bugs mailing list