From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6FE583858C31; Tue, 24 Jan 2023 12:35:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6FE583858C31 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674563754; bh=MFD+7a25QLW5Z6Oc9zvIxF1fqBbDDLpgKD/NXRCDcQs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DdrheTvfjCKU3NG7jC8DbspBBubtpRo8QQ4lRwz9Pno8Vp79GfKzWMWU9c6ZjkBKa 4+K1IJWvRm3dQo+u8W3K3famn6ZF8AlZzmKyqJoqe4u6IecxVcBZGu05iIDLBP+Tjd +8OSbAJcG1xBuZY+uGwaM7YKdBrCqqEXJkLwRMAg= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/108517] std::sort of empty range yield "warning: 'this' pointer is null" Date: Tue, 24 Jan 2023 12:35:54 +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.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW 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: 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=3D108517 --- Comment #2 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #1) > This looks related to PR 105705. Before gcc-12 the warning was already > present, but only when using -Wsystem-headers Sorry, meant to say the *second* warning was already present. The first one seems new in gcc-11.1.0 and is not affected by -Wsystem-headers before that= .=