From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2090.outbound.protection.outlook.com [40.107.20.90]) by sourceware.org (Postfix) with ESMTPS id 75A2A385841F; Mon, 11 Oct 2021 14:33:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 75A2A385841F ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JCHwj6V14K7HO/niJQYauc/wRK6r4l/Gbm9mLYOk/ehJCumxZhow+fqADlF+pTlL+UPFBCADrSB9V9otwJqIZnFx30iKr8u6BilJ4rL0NAu6T91o9cRumZZFqK1K8HYsZReOhmSXLTjx7xEdDu2m4S+y010ghsiD7/Eup85WgQbNmE/asyEdu/hnIc6cu+Ai/n9zjrT6aCGov8QssPKxAiJ2K6cnp74/5nOqlyS/jaxNj5FYgqaDM5pVhW2FOi6cnI4BxSpWfOO3An43RlEdD4NntOoqgxF1ZIhd1ZPHd+5i3BkG6PplCsm6Dpv7Ej/F/kZ2AuL3BqSlVNFPk+tjKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=o29FDjBfz51ThDu0y4SLQaoKEkFHwtJQyKArxI97z/Q=; b=KjH4uihtV3WcxrGQy6+I6aOKpEcBIHDADvOs12WtHe1tleoFqFwMo2rCpFC5wXPYEMZrjkkfkeGAeB26ogI7ZnAYT81G0gMCQwBAkGCD2TlT6gShPafoCV0ceNh1FxXQ6A+QUA5JnCuSrVwkQTxw+VmRCKk2MTgjUV8o5WHMMHqNxMiSsrRGgbEunuvkdn6qjZsL1+wz6ufEEau9gP+WGnLDJpdba0KS0f3y3VHxP7BRV+RG2t3V3FmaICG+kNv/ux/W724oJjlmTZN052YHOUZlO2rAkdUGLNDsQPGy5OHlUokN7oAgoWF2uZXZxtNH+34HtjLkoGsPerET2Eku8Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=uws.ac.uk; dmarc=pass action=none header.from=uws.ac.uk; dkim=pass header.d=uws.ac.uk; arc=none Received: from VI1PR0102MB3197.eurprd01.prod.exchangelabs.com (2603:10a6:803:2::28) by VI1PR01MB3773.eurprd01.prod.exchangelabs.com (2603:10a6:802:60::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.18; Mon, 11 Oct 2021 14:33:20 +0000 Received: from VI1PR0102MB3197.eurprd01.prod.exchangelabs.com ([fe80::31b0:1b9:1b31:87e]) by VI1PR0102MB3197.eurprd01.prod.exchangelabs.com ([fe80::31b0:1b9:1b31:87e%6]) with mapi id 15.20.4587.026; Mon, 11 Oct 2021 14:33:20 +0000 From: Paul Keir To: "gcc-patches@gcc.gnu.org" CC: "libstdc++@gcc.gnu.org" Subject: Re: [PATCH] libstdc++: Fix compare_three_way for constexpr and Clang Thread-Topic: [PATCH] libstdc++: Fix compare_three_way for constexpr and Clang Thread-Index: AQHXlf9zGYYf+4UjPkCR6yd+HcCmX6uSMbMkgDv71t8= Date: Mon, 11 Oct 2021 14:33:19 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: suggested_attachment_session_id: a0eb5e16-3199-631f-289c-28885f8df9e5 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1c80e1c6-436e-4f63-e52d-08d98cc4128b x-ms-traffictypediagnostic: VI1PR01MB3773: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:913; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: phj4E/LGfMQujVADkdeQ9Xj1z/+E0U6xDHQXLArxb1yPC26fllpRMqnX/PQ22KSDNLFUna0kXSSSYlFPkqScztJKthzE6k3YS1sP95rvmXCWGDNHGv99DS6kfD0F58k9r/BO/5/fOw9T9BHqGaWZmwM1QxKG+yMb42ByPGXuNLkuTWs7A+sqxUql0hdSkgjp3A6ygaj7BgcEs38BLB/+1Mfvu+DXz/zqu8VWHpdL1zFCSDfnoVlJ/aKpHx+0DP9o5B9PooY9zCYvwZYHzKqTKu6PznJEuHfyhX+FoimRdhL2Bbxl0rSIk6AwBjZpgEEykuGlZVgOvm9BaexqMR4leYlVyjO8NQKl14CBhs//l+zJsWEewb/wM7tyh756Ues1vYV5A7sOqph3YXe0p1vxXi/Y4dV9A/rRreKb9q4j/HL83X5vBGk1BiNM6Om3p0R+2nyVASE8ZKmHjdTaPC0QoAL0DwMXZsWAbe1vah37UaZiLcCuomH6EBep5PjLP5CKW315Ii65zadNaYeo0gWJUfdHbs0zqNvmVPiPgnOkeqQB2XOTGvPXiid0SmMYw3Ks4L9wyh6BunYX8KTz7dWOgLf8gzMAS5DrXlN8VBEv4weBHsOedr49GkGloy5PNKPlcO38HmGIGj0QzZEZttzm7+LkV3lOb4B3omvOMFZZ11RqNB3JKD9MlAMsivQ7vC7nwwvIN7mCXxsIUp/tKfnr3g== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0102MB3197.eurprd01.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(2906002)(52536014)(7696005)(38070700005)(508600001)(8936002)(33656002)(83380400001)(64756008)(9686003)(6506007)(4326008)(76116006)(91956017)(86362001)(66446008)(71200400001)(6916009)(316002)(450100002)(38100700002)(8676002)(5660300002)(186003)(66556008)(55016002)(786003)(122000001)(66476007)(53546011)(66946007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8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NapMzn3sWxmXnlzykHIW20Rpr4wNi?= =?iso-8859-1?Q?dAqGT8lsjDRHBCpLQxJuwstyDmFjGBGkRpSGLWHNfbAQd47ZlVa1ZEXEmv?= =?iso-8859-1?Q?G135+2EE3oAQ9sZO5ZXTwldo9HSmwMSl97BZKVwrTsH7t7AdzJXdTw52tJ?= =?iso-8859-1?Q?fBsELENFm/a0G5AYrQl8S/E6fE3USNSdgzjRnwbgVedD1mmoQ07pVsqm4b?= =?iso-8859-1?Q?86MUSBUGuNywk+NX7o7MHPEnXkqpN/vLDDWCsE0TOW7smLq10oLMNHPBwa?= =?iso-8859-1?Q?5/+LvUCTT6t3+p4SZl/nCKTk3TSc3YB9h9X8n1rtTlZsfnnsPZ2kujbP53?= =?iso-8859-1?Q?J1qDzCr/HBgthBJiYC7tVUIvMPuPhEvO9guUsYuv1NfnQR+LheGqKdNrbv?= =?iso-8859-1?Q?mLBW1te2x8ePfBONi7OgG6yLVrdESY+XeemIQbdS8A9r3vibfodq9u67/v?= =?iso-8859-1?Q?0ecHkeaL48UoWj/lU0jETY+egkiU7VYSfmC/mWhPUfbagargU6RRsoEtxT?= =?iso-8859-1?Q?Pm2gWVW0J5/5CEqD3ttAvq6FpO4ScrVJCp/LhE1SO5YmNFfMNMUTmJnHax?= =?iso-8859-1?Q?/ZzWh5IqSob1W5EH?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: uws.ac.uk X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR0102MB3197.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1c80e1c6-436e-4f63-e52d-08d98cc4128b X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Oct 2021 14:33:19.6385 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f89944b7-4a4e-4ea7-9156-3299f3411647 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 4AaILUoblwRtuXwzqBZLEtbKZnEA25VywhAzQca2Pk+9u27hTK5ZEFuc8E7zJ+wjyBH6d1/ml6zpcKu/qKDDGQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR01MB3773 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libstdc++@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++ mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Oct 2021 14:33:28 -0000 *ping* ________________________________________ From: Paul Keir Sent: 03 September 2021 11:31 To: gcc-patches@gcc.gnu.org Cc: libstdc++@gcc.gnu.org Subject: Re: [PATCH] libstdc++: Fix compare_three_way for constexpr and Cla= ng *ping* ________________________________________ From: Paul Keir Sent: 20 August 2021 21:17 To: gcc-patches@gcc.gnu.org Cc: libstdc++@gcc.gnu.org Subject: [PATCH] libstdc++: Fix compare_three_way for constexpr and Clang Hi, The current compare_three_way implementation makes provision for constant e= valuation contexts (avoiding reinterpret_cast etc.), but the approach fails= with Clang; when it compares two const volatile void pointers: "comparison= between unequal pointers to void has unspecified result". I include a fix = and test. Could someone commit the attached patch for me? Thanks, Paul Please consider the environment and think before you print. The University of the West of Scotland is a registered Scottish charity. Ch= arity number SC002520. This e-mail and any attachment is for authorised use by the intended recipi= ent(s) only. It may contain proprietary material, confidential information = and/or be subject to legal privilege. It should not be copied, disclosed to= , retained or used by, any other party. If you are not an intended recipien= t then please promptly delete this e-mail and any attachment and all copies= and inform the sender. Please note that any views or opinions presented in this email are solely t= hose of the author and do not necessarily represent those of the University= of the West of Scotland. As a public body, the University of the West of Scotland may be required to= make available emails as well as other written forms of information as a r= esult of a request made under the Freedom of Information (Scotland) Act 200= 2.