re PR c++/51917 (g++.old-deja/g++.abi/vmihint.C FAILs)
PR c++/51917 * decl.c (xref_basetypes): Check VEC_length instead of VEC_space. From-SVN: r183509
This commit is contained in:
parent
5d972ea6d5
commit
d2bb8192ee
@ -1,5 +1,8 @@
|
||||
2012-01-24 Jason Merrill <jason@redhat.com>
|
||||
|
||||
PR c++/51917
|
||||
* decl.c (xref_basetypes): Check VEC_length instead of VEC_space.
|
||||
|
||||
PR c++/51973
|
||||
* tree.c (called_fns_equal): Check template args.
|
||||
(cp_tree_equal): Call it.
|
||||
|
@ -11916,8 +11916,8 @@ xref_basetypes (tree ref, tree base_list)
|
||||
BINFO_BASE_ACCESS_APPEND (binfo, access);
|
||||
}
|
||||
|
||||
if (VEC_space (tree, CLASSTYPE_VBASECLASSES (ref), 1))
|
||||
/* If we have space in the vbase vector, we must have shared at
|
||||
if (VEC_length (tree, CLASSTYPE_VBASECLASSES (ref)) < max_vbases)
|
||||
/* If we didn't get max_vbases vbases, we must have shared at
|
||||
least one of them, and are therefore diamond shaped. */
|
||||
CLASSTYPE_DIAMOND_SHAPED_P (ref) = 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user