From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 09CA7385516E; Wed, 30 Nov 2022 14:36:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 09CA7385516E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669818985; bh=EqtbnbrAn7MQilhfaMZ0Vwe7+7Ba+G1Zb4Cu8Dc4DVI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dLtLuabrXO0+X1JEPrVo/gWYi1Esj5psB/D5FAR89KR8d8BomSI8MnarudlZpll6j LP18jWssZMOiww6/ymGJBE1BQyrqNsElYMuFpFJEagigketGdKXft/nel0X6qt5byo l0j4daKhomCrC1cn+Y259Cusvl4O8wGlBNl0Sets= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106434] [12/13 Regression] Spurious -Wnull-dereference when using std::unique_copy() since r12-5187-g1ae8edf5f73ca5c3 Date: Wed, 30 Nov 2022 14:36:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.1.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: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.3 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=3D106434 --- Comment #9 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #8) > This seems to work (the __glibcxx_assert isn't needed to stop the warning, > but might be a useful assertion). Well, it might be if I got the condition right. Doh.=