* call.c (build_over_call): Check IS_AGGR_TYPE, not
TYPE_LANG_SPECIFIC.
* typeck.c (convert_arguments): Likewise.
From-SVN: r18846
Thu Mar 26 11:16:30 1998 Jason Merrill <jason@yorick.cygnus.com>
+ * call.c (build_over_call): Check IS_AGGR_TYPE, not
+ TYPE_LANG_SPECIFIC.
+ * typeck.c (convert_arguments): Likewise.
+
* decl.c (grokdeclarator): Remove const and volatile from type after
setting constp and volatilep.
< TYPE_PRECISION (double_type_node)))
/* Convert `float' to `double'. */
val = cp_convert (double_type_node, val);
- else if (TYPE_LANG_SPECIFIC (TREE_TYPE (val))
+ else if (IS_AGGR_TYPE (TREE_TYPE (val))
&& ! TYPE_HAS_TRIVIAL_INIT_REF (TREE_TYPE (val)))
cp_warning ("cannot pass objects of type `%T' through `...'",
TREE_TYPE (val));
result = expr_tree_cons (NULL_TREE,
cp_convert (double_type_node, val),
result);
- else if (TYPE_LANG_SPECIFIC (TREE_TYPE (val))
+ else if (IS_AGGR_TYPE (TREE_TYPE (val))
&& ! TYPE_HAS_TRIVIAL_INIT_REF (TREE_TYPE (val)))
{
cp_warning ("cannot pass objects of type `%T' through `...'",