* typeck.c (convert_for_assignment): Use comptypes.
authorJason Merrill <jason@yorick.cygnus.com>
Thu, 16 Jul 1998 15:02:05 +0000 (15:02 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 16 Jul 1998 15:02:05 +0000 (11:02 -0400)
From-SVN: r21216

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

index 08b57eb98fbb96453ee1c2318b0ed1ec26880f05..749bf212579b0ccb292ee75d56a9222f5f0752fc 100644 (file)
@@ -1,3 +1,7 @@
+1998-07-16  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * typeck.c (convert_for_assignment): Use comptypes.
+
 1998-07-16  Mark Mitchell  <mark@markmitchell.com>
 
        * semantics.c (finish_object_call_expr): Move test for the
index 7ac9cf1f6c0674ba05e6fd1fcad8420f829b0a76..644260aad4fb609919b85bc2fc8174ef3380e75b 100644 (file)
@@ -6622,7 +6622,7 @@ convert_for_assignment (type, rhs, errtype, fndecl, parmnum)
   else if (TREE_READONLY_DECL_P (rhs))
     rhs = decl_constant_value (rhs);
 
-  if (type == rhstype)
+  if (comptypes (type, rhstype, 1))
     {
       overflow_warning (rhs);
       return rhs;