varasm.c (output_constructor_regular_field): Check TYPE_SIZE_UNIT of the init value.
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Thu, 6 Sep 2018 15:39:48 +0000 (15:39 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 6 Sep 2018 15:39:48 +0000 (09:39 -0600)
commit6d9001072d3ed5a82b8277426e6dd41a1c605990
treef152a5f3a4863b32753531cb6e74a16358a52921
parent6847c656b4153fbd0b552ac5051dc7b3ec44246a
varasm.c (output_constructor_regular_field): Check TYPE_SIZE_UNIT of the init value.

* 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.

From-SVN: r264147
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