PR middle-end/89294 - ICE in valid_constant_size_p
authorMartin Sebor <msebor@redhat.com>
Mon, 18 Feb 2019 16:31:17 +0000 (16:31 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Mon, 18 Feb 2019 16:31:17 +0000 (09:31 -0700)
commite2ebb05cd478db489afa019d4b12e116754a267e
treedcbec44fef694c0a6ed863c0f6271bb424e0d9df
parenteb8c4926c5bcec83ec7d4198e46bc9efe9a26f17
PR middle-end/89294 - ICE in valid_constant_size_p

gcc/c-family/ChangeLog:

PR middle-end/89294
* c-common.c (invalid_array_size_error): Handle cst_size_not_constant.

gcc/ChangeLog:

PR middle-end/89294
* tree.c (valid_constant_size_p): Avoid assuming size is a constant
expression.
* tree.h (cst_size_error): Add the cst_size_not_constant enumerator.

From-SVN: r268990
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/tree.c
gcc/tree.h