]> gcc.gnu.org Git - gcc.git/commitdiff
call.c (build_over_call): Check IS_AGGR_TYPE, not TYPE_LANG_SPECIFIC.
authorJason Merrill <jason@yorick.cygnus.com>
Thu, 26 Mar 1998 12:21:13 +0000 (12:21 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 26 Mar 1998 12:21:13 +0000 (07:21 -0500)
* call.c (build_over_call): Check IS_AGGR_TYPE, not
TYPE_LANG_SPECIFIC.
* typeck.c (convert_arguments): Likewise.

From-SVN: r18846

gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/typeck.c

index a25b4415784b2674b2f82f93ad3aa12daa5e85f3..15d07097552c582f093ea64fac574394871014e9 100644 (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.
 
index 880fce419ae81bde991265f314a0bbbd2565bacc..d9b0d4108585bf90e277aee2d9b65b5840fa4e82 100644 (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));
index e2d40f5bb47c293126c64883d47bef58e7911350..6336751db974099d9011dae07e861449a2013ad1 100644 (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 `...'",
This page took 0.087553 seconds and 5 git commands to generate.