This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH RFA: -Wc++-compat warning about globals with anonymous type
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Fri, 19 Jun 2009 14:00:06 +0000 (UTC)
- Subject: Re: PATCH RFA: -Wc++-compat warning about globals with anonymous type
- References: <m3ab45z6o6.fsf@pepe.airs.com>
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