]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* cp-lang.c (cp_expr_size): Don't abort.
authorJason Merrill <jason@redhat.com>
Sun, 1 Sep 2002 07:44:00 +0000 (03:44 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sun, 1 Sep 2002 07:44:00 +0000 (03:44 -0400)
From-SVN: r56719

gcc/cp/ChangeLog
gcc/cp/cp-lang.c

index e7c5b8c5316d9f14d768bd3917cb642fc0ce1f41..8fcb4aad158192be8280cc9948c14f16e74f6f20 100644 (file)
@@ -1,3 +1,7 @@
+2002-08-31  Jason Merrill  <jason@redhat.com>
+
+       * cp-lang.c (cp_expr_size): Don't abort.
+
 2002-08-27  Mark Mitchell  <mark@codesourcery.com>
 
        * cp-tree.h (warn_abi): Declare it.
index 7b1d860a08e65c98ac0217c91e72d114c91fd2f2..b573cce317b12fa7d889f9903b645e85c7833366 100644 (file)
@@ -122,14 +122,8 @@ cp_expr_size (exp)
 {
   if (CLASS_TYPE_P (TREE_TYPE (exp)))
     {
-      /* The backend should not be interested in the size of an expression
-        of a type with both of these set; all copies of such types must go
-        through a constructor or assignment op.  */
-      if (TYPE_HAS_COMPLEX_INIT_REF (TREE_TYPE (exp))
-         && TYPE_HAS_COMPLEX_ASSIGN_REF (TREE_TYPE (exp)))
-       abort ();
-      /* This would be wrong for a type with virtual bases, but they are
-        caught by the abort above.  */
+      /* This would be wrong for a type with virtual bases, but they should
+        not get here.  */
       return CLASSTYPE_SIZE_UNIT (TREE_TYPE (exp));
     }
   else