c-typeck.c (digest_init): Allow initializing static storage duration objects with...
authorJakub Jelinek <jakub@redhat.com>
Wed, 12 Dec 2001 19:12:16 +0000 (20:12 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 12 Dec 2001 19:12:16 +0000 (20:12 +0100)
commit59c83dbf283e0dcf89ecfcfcbab856682291842a
tree52579c466b178af3b34b3b7f1c35b83542ee7516
parent3af37d3f59fae068635c004403868f317eb732af
c-typeck.c (digest_init): Allow initializing static storage duration objects with compound literals.

* c-typeck.c (digest_init): Allow initializing
static storage duration objects with compound literals.
* doc/extend.texi (Compound literals): Document the extension.

* gcc.dg/gnu89-init-1.c: New test.

From-SVN: r47945
gcc/ChangeLog
gcc/c-typeck.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gnu89-init-1.c [new file with mode: 0644]