From: Jason Merrill Date: Tue, 12 Sep 2023 16:15:13 +0000 (-0400) Subject: c++: overlapping subobjects tweak X-Git-Tag: basepoints/gcc-15~6055 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d5d45465b2b4376731c9ab8cd96b51a66496a492;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/cp/class.cc b/gcc/cp/class.cc index 9139a0075abf..d270dcbb14ce 100644 --- a/gcc/cp/class.cc +++ b/gcc/cp/class.cc @@ -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;