Message ID | 20231123174450.2450203-1-jwakely@redhat.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp663317vqx; Thu, 23 Nov 2023 11:20:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IHXNhwzvS9yOlkVa7JXY+Kwp1efsw++Ifgn7iTXTgQlewLyxQas6vN8ljhQW21D7kod8D7Z X-Received: by 2002:a05:6214:5654:b0:677:a09a:83bd with SMTP id mh20-20020a056214565400b00677a09a83bdmr519334qvb.19.1700767225811; Thu, 23 Nov 2023 11:20:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700767225; cv=pass; d=google.com; s=arc-20160816; b=MoK+fPohjHrc5LLFF3iUP0VD9sx3WA/L9SKQMrEc5o0dIxBXj0NOYVt9AdSC9VujYn wyC99NVSNqpoXnyHIZeOZ8Qmd1GC8PiZSzEgjjP8kqIQ67/uVQBbn93C3GA+zUEZTtcJ csf/DH3HYDU0ZkwyiMXUS97fMplUebrmbilBvRbcG/HXAp2BdzzaJ306oAtR/p+Orkmg SVJ26eD+01a+pavVsQNVbQY4wsy1d9lOR4SwcLGMqy+l1R0sWcY+4LevqlCyG5GSXWJb gCuxDQ54aTgMqQ5TZM7rbwfIs0bz0Ki+0/Jm6nm3DHNZwhTCnRVkVkF3jEWE8ZIFTLBA zocA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=u75vXgw5PWNnHU+BtN29vK+U06GOB5iLFFte3SstdOA=; fh=sJ+2/4g29YdyXkoRrFZSpsL2zxijepB7X/1rB0LDDh8=; b=ipHDlIWSAHFyEVE2CIZveGum9YHnpWnb6ryTqOL+gDFP7oRY9Jl7Wi2CCehBQc5DRo fIOl7e0EdVF0etQ3vFw8w235MK17cJQaqTDveDmA/Ef2o61jgqZrSvW/8NKAInUxibNg r1U9jPh9t59pOsW9cYDsmv24ctpiYRZawnasFDsfjKaQySM5Wb8Eno5RVqmtZgMp7lcJ epgqihlLvuFSGGN/8lWWLk2cEuegZ6FYa7h2jSAvmLaGjkT4uyGnySZnxl1kQjfA8YcT xXzgfWITuu03MBe3+h6KNe89mv1QCrOeL0ilHZiMCeizB7AsYsftbFZCTDrne24fPTuQ j4pQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=I+eKEYIX; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id ez11-20020ad4590b000000b00670d09ba39bsi1622889qvb.526.2023.11.23.11.20.25 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 11:20:25 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=I+eKEYIX; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E7A593857034 for <ouuuleilei@gmail.com>; Thu, 23 Nov 2023 17:45:27 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id AF5F23858D35 for <gcc-patches@gcc.gnu.org>; Thu, 23 Nov 2023 17:45:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AF5F23858D35 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org AF5F23858D35 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700761505; cv=none; b=nIFGgxGpQt0rr3A0iXA9VIlCFCoC1MN6+a8ntiJXduwUDGlIJwsoXTap2smVfdNKg5HCbo2Lo7lYmfYQkJ1w7K4rlP65MaUvxr/XWQQAZgmgh9d9uY6hKJgJEbc7Rh0eg9OKRePR2eZvh+IdcR4lzkzLRdDT+wrUhVQT9j8mTKQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700761505; c=relaxed/simple; bh=R6Y24JCPfbfjA4Ln6pQ/U3Aas0n8wlM5CKWPmSG1AdE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=AexDI1Iz/bjmPYdeVKf+kNixkwpikf4lyTat4+fQuI85uNAMWIBUudXmlJYosz3kzbwFaScD+hR2b+11IpWNa0VlujhJ00v/ctk1PspmCXh6+qFG/veoB+eaV/ijFhluCQSxQJ83h4M1lit+bX8w4BC0dQ6eDx4xoTBNAc2Z+6o= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700761504; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=u75vXgw5PWNnHU+BtN29vK+U06GOB5iLFFte3SstdOA=; b=I+eKEYIXiLmPckgFIf/M0/Zs8wcvB2/bCQVDZMrMFrSWbN6/61s9sIHMIKNaGQco0edQV9 GaOjz6WvZrp/EK3JMdJy6YlgoltSDK1a3DyJI/p7g7kPdnOxmzFJD8A6bdAo/rekPWvBOh DorFUOxHPll0xQW4Ta2BQLOlRneINkM= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-228-zkUjGR0wPQ6J03VwakQkHg-1; Thu, 23 Nov 2023 12:45:03 -0500 X-MC-Unique: zkUjGR0wPQ6J03VwakQkHg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C0207185A781; Thu, 23 Nov 2023 17:45:02 +0000 (UTC) Received: from localhost (unknown [10.42.28.12]) by smtp.corp.redhat.com (Postfix) with ESMTP id 603DC285B; Thu, 23 Nov 2023 17:44:52 +0000 (UTC) From: Jonathan Wakely <jwakely@redhat.com> To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Fix access error in __gnu_test::uneq_allocator Date: Thu, 23 Nov 2023 17:44:37 +0000 Message-ID: <20231123174450.2450203-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783383694329435465 X-GMAIL-MSGID: 1783383694329435465 |
Series |
[committed] libstdc++: Fix access error in __gnu_test::uneq_allocator
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Jonathan Wakely
Nov. 23, 2023, 5:44 p.m. UTC
Tested x86_64-linux. Pushed to trunk. -- >8 -- The operator== function is only a friend of the LHS argument, so cannot access the private member of the RHS argument. Use the public accessor instead. libstdc++-v3/ChangeLog: * testsuite/util/testsuite_allocator.h (uneq_allocator): Fix equality operator for heterogeneous comparisons. --- libstdc++-v3/testsuite/util/testsuite_allocator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libstdc++-v3/testsuite/util/testsuite_allocator.h b/libstdc++-v3/testsuite/util/testsuite_allocator.h index 70dacb3fdf2..1773b723b66 100644 --- a/libstdc++-v3/testsuite/util/testsuite_allocator.h +++ b/libstdc++-v3/testsuite/util/testsuite_allocator.h @@ -418,7 +418,7 @@ namespace __gnu_test operator==(const uneq_allocator& a, const uneq_allocator<Tp1, typename AllocTraits::template rebind<Tp1>::other>& b) - { return a.personality == b.personality; } + { return a.personality == b.get_personality(); } template<typename Tp1> friend inline bool