]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: overlapping subobjects tweak
authorJason Merrill <jason@redhat.com>
Tue, 12 Sep 2023 16:15:13 +0000 (12:15 -0400)
committerJason Merrill <jason@redhat.com>
Mon, 18 Sep 2023 03:40:27 +0000 (23:40 -0400)
The ABI is settling on "similar" for this rule.

gcc/cp/ChangeLog:

* class.cc (check_subobject_offset): Use similar_type_p.

gcc/cp/class.cc

index 9139a0075abf73e4da613d143762d7652c6d19a2..d270dcbb14ce000b82a8ab7ea64d44b7729fbc4f 100644 (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;