diff options
Diffstat (limited to 'gcc-4.9/gcc/cp/expr.c')
-rw-r--r-- | gcc-4.9/gcc/cp/expr.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/cp/expr.c b/gcc-4.9/gcc/cp/expr.c index a62e0f9b5..99f8006fb 100644 --- a/gcc-4.9/gcc/cp/expr.c +++ b/gcc-4.9/gcc/cp/expr.c @@ -74,6 +74,14 @@ cplus_expand_constant (tree cst) } break; + case CONSTRUCTOR: + { + constructor_elt *elt; + unsigned HOST_WIDE_INT idx; + FOR_EACH_VEC_SAFE_ELT (CONSTRUCTOR_ELTS (cst), idx, elt) + elt->value = cplus_expand_constant (elt->value); + } + default: /* There's nothing to do. */ break; |