From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E2DB03858D1E; Tue, 24 Jan 2023 12:01:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E2DB03858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674561702; bh=4T+eg9V1xsaGfQH8sHVdXjHYlXAG1ho0Iy63tFNCiqQ=; h=From:To:Subject:Date:From; b=SA+dKg0XIyOy2dAXTnBNhcSEDpnqarKH2UMIhuYRJLJkveSA2c+w84XUpz00Vuxqx 2BRGAzHbxgZujbY+XTDg41QXp9bZ4SeKXQgeB40lXmfPBbBX9XZhdheRakC8hQ8ngF dDd62kZemX1ngkazFRT+B0KxWtePAqvjU18T/HiY= From: "hanicka at hanicka dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/108517] New: std::sort of empty range yield "warning: 'this' pointer is null" Date: Tue, 24 Jan 2023 12:01:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hanicka at hanicka dot net 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 Bug ID: 108517 Summary: std::sort of empty range yield "warning: 'this' pointer is null" Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: hanicka at hanicka dot net Target Milestone: --- Bug in GCC 11.1-13 (including trunk) https://compiler-explorer.com/z/EEjeaKfv7 I couldn't minimize it further. Lowering optimization level will make the warning gone.=