call.c (convert_like_real): Don't check narrowing if the element is also an initializer-list.
* call.c (convert_like_real): Don't check narrowing if the element is also an initializer-list. From-SVN: r166005
This commit is contained in:
parent
221925596f
commit
bc8a0bd9fc
@ -1,3 +1,8 @@
|
||||
2010-10-27 Jason Merrill <jason@redhat.com>
|
||||
|
||||
* call.c (convert_like_real): Don't check narrowing if the element
|
||||
is also an initializer-list.
|
||||
|
||||
2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
|
||||
|
||||
* parser.c (cp_parser_objc_at_property_declaration): Recognize
|
||||
|
@ -5115,7 +5115,8 @@ convert_like_real (conversion *convs, tree expr, tree fn, int argnum,
|
||||
1, false, false, complain);
|
||||
if (sub == error_mark_node)
|
||||
return sub;
|
||||
check_narrowing (TREE_TYPE (sub), val);
|
||||
if (!BRACE_ENCLOSED_INITIALIZER_P (val))
|
||||
check_narrowing (TREE_TYPE (sub), val);
|
||||
CONSTRUCTOR_APPEND_ELT (CONSTRUCTOR_ELTS (new_ctor), NULL_TREE, sub);
|
||||
}
|
||||
/* Build up the array. */
|
||||
|
Loading…
Reference in New Issue
Block a user