public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-4084] c++: overlapping subobjects tweak
@ 2023-09-18  3:40 Jason Merrill
  0 siblings, 0 replies; only message in thread
From: Jason Merrill @ 2023-09-18  3:40 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:d5d45465b2b4376731c9ab8cd96b51a66496a492

commit r14-4084-gd5d45465b2b4376731c9ab8cd96b51a66496a492
Author: Jason Merrill <jason@redhat.com>
Date:   Tue Sep 12 12:15:13 2023 -0400

    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:
---
 gcc/cp/class.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/cp/class.cc b/gcc/cp/class.cc
index 9139a0075ab..d270dcbb14c 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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-18  3:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-18  3:40 [gcc r14-4084] c++: overlapping subobjects tweak Jason Merrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).