diff options
author | Martin Sebor <msebor@redhat.com> | 2019-02-18 16:31:17 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2019-02-18 09:31:17 -0700 |
commit | e2ebb05cd478db489afa019d4b12e116754a267e (patch) | |
tree | dcbec44fef694c0a6ed863c0f6271bb424e0d9df /gcc/tree.h | |
parent | eb8c4926c5bcec83ec7d4198e46bc9efe9a26f17 (diff) | |
download | gcc-e2ebb05cd478db489afa019d4b12e116754a267e.zip gcc-e2ebb05cd478db489afa019d4b12e116754a267e.tar.gz gcc-e2ebb05cd478db489afa019d4b12e116754a267e.tar.bz2 |
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
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -4352,6 +4352,7 @@ extern tree excess_precision_type (tree); is not a valid size. */ enum cst_size_error { cst_size_ok, + cst_size_not_constant, cst_size_negative, cst_size_too_big, cst_size_overflow |