diff options
author | Jason Merrill <jason@redhat.com> | 2011-03-11 09:44:49 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2011-03-11 09:44:49 -0500 |
commit | 30f7cdcde6e9933e55e6bae37b5f5e785b28fa90 (patch) | |
tree | f79a5c6eb2e0dfd998ddccb000bdf2007781b72e /gcc/tree.c | |
parent | 0f2a6198d15b6bec1fd9f4dd411a04bb200945d9 (diff) | |
download | gcc-30f7cdcde6e9933e55e6bae37b5f5e785b28fa90.zip gcc-30f7cdcde6e9933e55e6bae37b5f5e785b28fa90.tar.gz gcc-30f7cdcde6e9933e55e6bae37b5f5e785b28fa90.tar.bz2 |
re PR c++/48069 (FAIL: g++.old-deja/g++.pt/spec26.C)
PR c++/48069
* tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
From-SVN: r170872
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; |