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

Joseph S. Myers joseph@codesourcery.com
Fri Jun 19 14:07:00 GMT 2009


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



More information about the Gcc-patches mailing list