Make C1X anonymous structs/unions follow N1549

Joseph S. Myers joseph@codesourcery.com
Fri Mar 18 23:01:00 GMT 2011


On Fri, 18 Mar 2011, Jakub Jelinek wrote:

> On Fri, Mar 18, 2011 at 09:16:55PM +0000, Joseph S. Myers wrote:
> > This week's London WG14 meeting agreed to disallow the use of typedefs
> > in declaring anonymous structure and union fields, as per N1549.  This
> > patch implements this, restricting the use of typedefs in this case to
> > -fms-extensions and -fplan9-extensions as in 4.5 and earlier releases.
> 
> If I understand it right, your patch restores the 4.5 code except for
> -fplan9-extensions and with flag_iso not being checked.

Yes, that's the intent of the grokfield changes in this patch.  (All the 
other front-end changes in 4.6 relating to anonymous structs and unions 
are unaffected by this typedef change.)

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc-patches mailing list