From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9ACEF385842C; Wed, 4 Oct 2023 01:35:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9ACEF385842C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696383301; bh=CioLowwMNb5y3MIscNlXhuBVVixI/D0CaPKXPAHS8yE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=N4g5CnUiYYGl2qeujN8Ydoqf2d97522jRFDpuOWq4Q+gfyyzWiVG+pc0yVwfA+XQ2 FJUdAe9ZR4IzPMdRZryzT11m/Mq044yOcIotClH63xQ/DTuyvIPq+LAb7Xhc2pyZbK ekc5LKkuAhg3UabsPOrr5Sph1m0j3xu4oZd/ZyOU= From: "xry111 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/111685] Segfault while sorting on array element address Date: Wed, 04 Oct 2023 01:35:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: xry111 at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111685 Xi Ruoyao changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xry111 at gcc dot gnu.org --- Comment #7 from Xi Ruoyao --- [alg.sorting] p3: For algorithms other than those described in 28.7.3, comp shall induce a strict weak ordering on the values. Note the terminology "values". I cannot find the definition of "value" in = the standard, but I'm pretty sure the "values" must be independent to "their addresses" or the entire standard would become completely unreasonable (note that rvalues has no addresses at all).=