re PR c++/48069 (FAIL: g++.old-deja/g++.pt/spec26.C)
authorJason Merrill <jason@redhat.com>
Fri, 11 Mar 2011 14:44:49 +0000 (09:44 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 11 Mar 2011 14:44:49 +0000 (09:44 -0500)
PR c++/48069
* tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.

From-SVN: r170872

gcc/ChangeLog
gcc/tree.c

index 988e19e8298b3c36196ead313e3a3bd8bc23a1b0..4eb10249beb1d318002121d474bf9721556161d4 100644 (file)
@@ -1,3 +1,9 @@
+2011-03-11  Jason Merrill  <jason@redhat.com>
+
+       PR c++/48069
+       * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
+       COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
+
 2011-03-11  Martin Jambor  <mjambor@suse.cz>
 
        * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
index 2e1b9a308bd19c32b8c5f926dd1cd4763231c0fc..d923ac89a766146369c8957efa1ad8d587e0fee6 100644 (file)
@@ -5988,8 +5988,7 @@ type_hash_eq (const void *va, const void *vb)
   /* Be careful about comparing arrays before and after the element type
      has been completed; don't compare TYPE_ALIGN unless both types are
      complete.  */
-  if (COMPLETE_OR_UNBOUND_ARRAY_TYPE_P (a->type)
-      && COMPLETE_OR_UNBOUND_ARRAY_TYPE_P (b->type)
+  if (COMPLETE_TYPE_P (a->type) && COMPLETE_TYPE_P (b->type)
       && (TYPE_ALIGN (a->type) != TYPE_ALIGN (b->type)
          || TYPE_MODE (a->type) != TYPE_MODE (b->type)))
     return 0;