diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1994-02-27 14:41:53 -0800 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1994-02-27 14:41:53 -0800 |
commit | d27c148b7639ccd374b07892b35b6d2a5d080826 (patch) | |
tree | 48bd33e8beb2d51d39b238aeca28c861b4a0448b /gcc | |
parent | f95d3af09e1ee6626fe61818e39e5289797f2f4e (diff) | |
download | gcc-d27c148b7639ccd374b07892b35b6d2a5d080826.zip gcc-d27c148b7639ccd374b07892b35b6d2a5d080826.tar.gz gcc-d27c148b7639ccd374b07892b35b6d2a5d080826.tar.bz2 |
(process_init_element): Check for constructor_type
set before dereferencing it in the string cst code.
From-SVN: r6656
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-typeck.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index b233385..97fb256 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -5872,6 +5872,7 @@ process_init_element (value) /* Handle superfluous braces around string cst as in char x[] = {"foo"}; */ if (string_flag + && constructor_type && TREE_CODE (constructor_type) == ARRAY_TYPE && TREE_CODE (TREE_TYPE (constructor_type)) == INTEGER_TYPE && integer_zerop (constructor_unfilled_index)) |