aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r--gcc/cp/decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index d122dfb..70d5d31 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -7836,7 +7836,7 @@ reshape_init (tree type, tree *initp)
return old_init;
}
- if (TREE_CODE (old_init) == STRING_CST
+ if (TREE_CODE (old_init_value) == STRING_CST
&& TREE_CODE (type) == ARRAY_TYPE
&& char_type_p (TREE_TYPE (type)))
{