* varasm.c (output_constructor_regular_field): Check TYPE_SIZE_UNIT of
commitdf06d247525af5e13ac4c8136a6d4d58964ab6c4
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Sep 2018 15:39:48 +0000 (6 15:39 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Sep 2018 15:39:48 +0000 (6 15:39 +0000)
treef152a5f3a4863b32753531cb6e74a16358a52921
parent3b76cef6b22efe1853b325e1134df4de89573fc8
* varasm.c (output_constructor_regular_field): Check TYPE_SIZE_UNIT of
the init value.

* c-common.c (complete_flexible_array_elts): New helper function.
* c-common.h (complete_flexible_array_elts): Declare.

* c-decl.c (finish_decl): Call complete_flexible_array_elts.

* decl.c (check_initializer): Call cp_complete_array_type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264147 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/c-family/c-common.h
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/varasm.c