Commit b3e4ff59 by Jason Merrill Committed by Jason Merrill

call.c (build_over_call): Check IS_AGGR_TYPE, not TYPE_LANG_SPECIFIC.

	* call.c (build_over_call): Check IS_AGGR_TYPE, not
	TYPE_LANG_SPECIFIC.
	* typeck.c (convert_arguments): Likewise.

From-SVN: r18846
parent 56d4b6fd
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.
......
......@@ -3241,7 +3241,7 @@ build_over_call (fn, convs, args, flags)
< 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));
......
......@@ -2974,7 +2974,7 @@ convert_arguments (return_loc, typelist, values, fndecl, flags)
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 `...'",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment