mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-29 01:45:09 +08:00
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:
parent
56d4b6fdcb
commit
b3e4ff59a3
@ -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.
|
||||
|
||||
|
@ -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 `...'",
|
||||
|
Loading…
Reference in New Issue
Block a user