* call.c (convert_like_real): Don't check narrowing if the element
is also an initializer-list.
From-SVN: r166005
+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
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. */