c-decl.c (pushdecl): Only increase n_incomplete if pushed decl's type is RECORD_TYPE...
authorJakub Jelinek <jakub@redhat.com>
Wed, 5 Dec 2001 14:09:56 +0000 (15:09 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 5 Dec 2001 14:09:56 +0000 (15:09 +0100)
commitf79349c75ce20fe02b76edbcf347045181af0fa9
treeb441c86d092a48c7430183b19d6c18262c615e50
parentf71307783a96ca77b876c1ee0e8f3c6a33bc9a6a
c-decl.c (pushdecl): Only increase n_incomplete if pushed decl's type is RECORD_TYPE...

* c-decl.c (pushdecl): Only increase n_incomplete if pushed decl's
type is RECORD_TYPE, UNION_TYPE or ARRAY_TYPE thereof.
(finish_struct): Break the loop if n_incomplete went to 0.
For ARRAY_TYPE, if it is not TYPE_DECL, layout the decl too.

* gcc.c-torture/compile/20011130-1.c: New test.

From-SVN: r47671
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog