summaryrefslogtreecommitdiff
path: root/gcc/c-typeck.c
diff options
context:
space:
mode:
authorAlan Modra <alan@linuxcare.com.au>2001-03-27 06:03:40 +0000
committerAlan Modra <amodra@gcc.gnu.org>2001-03-27 15:33:40 +0930
commitb13aca193b0d72af3a249cabe0951ba39a60b693 (patch)
tree9d657f8e53779d5aabf29191ccae9bf3d24c43f4 /gcc/c-typeck.c
parent005a5cb08b854e411ef9941d4fcb9de0bbce755a (diff)
downloadgcc-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.c2
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. */