This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH RFA: -Wc++-compat warning about globals with anonymous type


On Thu, 18 Jun 2009, Ian Lance Taylor wrote:

> gcc/ChangeLog:
> 
> 2009-06-18  Ian Lance Taylor  <iant@google.com>
> 
> 	* c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
> 	variable with an anonymous type.
> 
> gcc/testsuite/ChangeLog:
> 
> 2009-06-18  Ian Lance Taylor  <iant@google.com>
> 
> 	* gcc.dg/Wcxx-compat-16.c: New testcase.

The C changes are OK.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]