aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1998-03-26 12:21:13 +0000
committerJason Merrill <jason@gcc.gnu.org>1998-03-26 07:21:13 -0500
commitb3e4ff59a36ba89dab631e92515b8527b3521359 (patch)
treebedf8b14ae9002316c9e7ed716e279589e20329e /gcc/cp
parent56d4b6fdcbf428480e7f0530ef77990e31773615 (diff)
downloadgcc-b3e4ff59a36ba89dab631e92515b8527b3521359.zip
gcc-b3e4ff59a36ba89dab631e92515b8527b3521359.tar.gz
gcc-b3e4ff59a36ba89dab631e92515b8527b3521359.tar.bz2
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
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/call.c2
-rw-r--r--gcc/cp/typeck.c2
3 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index a25b441..15d0709 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 880fce4..d9b0d41 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -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));
diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c
index e2d40f5..6336751 100644
--- a/gcc/cp/typeck.c
+++ b/gcc/cp/typeck.c
@@ -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 `...'",