diff options
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r-- | gcc/cp/decl.c | 2 |
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))) { |