typeck2.c (split_nonconstant_init_1): Fix num_split_elts handling for RANGE_ARRAY case.
* typeck2.c (split_nonconstant_init_1): Fix num_split_elts handling for RANGE_ARRAY case. From-SVN: r207050
This commit is contained in:
parent
c51f5910f3
commit
2cbf3dd796
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-01-24 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* typeck2.c (split_nonconstant_init_1): Fix num_split_elts
|
||||
handling for RANGE_ARRAY case.
|
||||
|
||||
2014-01-24 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/57524
|
||||
|
|
|
@ -643,6 +643,8 @@ split_nonconstant_init_1 (tree dest, tree init)
|
|||
code = build_vec_init (sub, max, value, false, 0,
|
||||
tf_warning_or_error);
|
||||
add_stmt (code);
|
||||
if (tree_fits_shwi_p (max))
|
||||
num_split_elts += tree_to_shwi (max);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue