c++: overlapping subobjects tweak

The ABI is settling on "similar" for this rule.

gcc/cp/ChangeLog:

	* class.cc (check_subobject_offset): Use similar_type_p.
This commit is contained in:
Jason Merrill 2023-09-12 12:15:13 -04:00
parent 5761dce5d7
commit d5d45465b2

View file

@ -4065,7 +4065,7 @@ check_subobject_offset (tree type, tree offset, splay_tree offsets)
return 1;
if (cv_check != ignore
&& same_type_ignoring_top_level_qualifiers_p (elt, type))
&& similar_type_p (elt, type))
{
if (cv_check == fast)
return 1;