c: ignore initializers for elements of variable-size types [PR93577]
authorChristophe Lyon <christophe.lyon@linaro.org>
Tue, 17 Mar 2020 09:26:08 +0000 (09:26 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Tue, 17 Mar 2020 09:45:35 +0000 (09:45 +0000)
commitfd857de80705be937d9780dbd394d006151713fe
tree8adeb3366cbadd565584dbc8224670a26d7981cf
parent741ff2a263fe0ddc343288331c0047c1a32af8b2
c: ignore initializers for elements of variable-size types [PR93577]

2020-03-17  Christophe Lyon  <christophe.lyon@linaro.org>

gcc/
* c-typeck.c (process_init_element): Handle constructor_type with
type size represented by POLY_INT_CST.

gcc/testsuite/
* gcc.target/aarch64/sve/acle/general-c/sizeless-1.c: Remove
superfluous dg-error.
* gcc.target/aarch64/sve/acle/general-c/sizeless-2.c: Likewise.
gcc/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/sizeless-1.c
gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/sizeless-2.c