]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/doc/extend.texi
c-typeck.c (store_init_value): If initializing object with array type of unknown...
authorJakub Jelinek <jakub@redhat.com>
Fri, 28 Dec 2001 09:51:20 +0000 (10:51 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 28 Dec 2001 09:51:20 +0000 (10:51 +0100)
commitad47f1e56e6dc41ee774c52b7fa259d7eebb2aaa
treee162df60bcf3b5fe5c9cded896de667eda0a09a1
parente6724881e63b36f7b174030d003b47b9c6a111a2
c-typeck.c (store_init_value): If initializing object with array type of unknown size by a compound literal...

* c-typeck.c (store_init_value): If initializing object with array
type of unknown size by a compound literal, set object's size from
compound literal size.
* doc/extend.texi (Compound Literals): Adjust documentation.

* gcc.dg/gnu89-init-1.c: Adjust for the new behaviour, add some
additional tests.

From-SVN: r48343
gcc/ChangeLog
gcc/c-typeck.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gnu89-init-1.c