diff options
author | Alan Modra <alan@linuxcare.com.au> | 2001-03-27 06:03:40 +0000 |
---|---|---|
committer | Alan Modra <amodra@gcc.gnu.org> | 2001-03-27 15:33:40 +0930 |
commit | b13aca193b0d72af3a249cabe0951ba39a60b693 (patch) | |
tree | 9d657f8e53779d5aabf29191ccae9bf3d24c43f4 /gcc/c-typeck.c | |
parent | 005a5cb08b854e411ef9941d4fcb9de0bbce755a (diff) | |
download | gcc-b13aca193b0d72af3a249cabe0951ba39a60b693.tar.gz |
* c-typeck.c (digest_init): Fold init expression.
From-SVN: r40867
Diffstat (limited to 'gcc/c-typeck.c')
-rw-r--r-- | gcc/c-typeck.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 1ff44d21369..508045b4979 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -4675,6 +4675,8 @@ digest_init (type, init, require_constant, constructor_constant) if (TREE_CODE (init) == NON_LVALUE_EXPR) inside_init = TREE_OPERAND (init, 0); + inside_init = fold (inside_init); + /* Initialization of an array of chars from a string constant optionally enclosed in braces. */ |