diff options
| author | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-03-27 06:03:40 +0000 |
|---|---|---|
| committer | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-03-27 06:03:40 +0000 |
| commit | 189495e1d28344a8d97ae325612ede96befd397a (patch) | |
| tree | 9d657f8e53779d5aabf29191ccae9bf3d24c43f4 /gcc/c-typeck.c | |
| parent | fa1e684b6641a253b3de8aff0b0fcc5e7ba200d1 (diff) | |
| download | ppe42-gcc-189495e1d28344a8d97ae325612ede96befd397a.tar.gz ppe42-gcc-189495e1d28344a8d97ae325612ede96befd397a.zip | |
* c-typeck.c (digest_init): Fold init expression.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40867 138bc75d-0d04-0410-961f-82ee72b054a4
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. */ |

