Commit 30f7cdcd by Jason Merrill Committed by Jason Merrill

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
parent 0f2a6198
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
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment