c-decl.c (diagnose_mismatched_decls): Give an error for redefining a typedef with...
authorJoseph Myers <joseph@codesourcery.com>
Fri, 18 Mar 2011 23:26:16 +0000 (23:26 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Fri, 18 Mar 2011 23:26:16 +0000 (23:26 +0000)
commit8bf872f9e802229ec2def801b4b1d53ffc149c35
tree4c5bb74e8984d1dc6006840491fe25e44dbdb0e8
parentff8e21599213bbea6ccacecf2522ad19836c8fd1
c-decl.c (diagnose_mismatched_decls): Give an error for redefining a typedef with variably modified type.

* c-decl.c (diagnose_mismatched_decls): Give an error for
redefining a typedef with variably modified type.

testsuite:
* gcc.dg/c1x-typedef-1.c: Expect errors for redefinitions of
variably modified typedefs.
* gcc.dg/c1x-typedef-2.c: Remove.

From-SVN: r171172
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c1x-typedef-1.c
gcc/testsuite/gcc.dg/c1x-typedef-2.c [deleted file]