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
This commit is contained in:
Jason Merrill 1998-03-26 12:21:13 +00:00 committed by Jason Merrill
parent 56d4b6fdcb
commit b3e4ff59a3
3 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,9 @@
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.

View File

@ -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));

View File

@ -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 `...'",