From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6E3113857C44; Fri, 11 Nov 2022 15:03:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6E3113857C44 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668178988; bh=bYTulkp+GgoHkNW+/OZt5V0KE1hIyBvfLwobZJwuuY8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ScNxBAWEOc8vuwwnX59yB7yxfIHsHW694EhzsIOG3Jiy1fEbnu4LRq03XKAx9hNHe /Sv7BYGS8dtwS6u/qcVo6bsu3a35SjOkplF747S4TN7kFznVJujdEnrKcd4l23pQWI Fcrx0iqmvD3BjAUCMbR67dco1IDwOTxK+V7Uzwwk= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rust/107633] [13 regression] Bootstrap failure due to -Werror=unused-parameter and -Werror=dangling-reference Date: Fri, 11 Nov 2022 15:03:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rust X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek 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: 13.0 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=3D107633 --- Comment #3 from Marek Polacek --- I thought this had been fixed by commit 32a06ce38a38bf37db468f0e6c83520fcc221534 Author: Marek Polacek Date: Tue Nov 1 17:05:52 2022 -0400 c++: Quash -Wdangling-reference for member operator* [PR107488] -Wdangling-reference complains here: std::vector v =3D ...; std::vector::const_iterator it =3D v.begin(); while (it !=3D v.end()) { const int &r =3D *it++; // warning } is the operator* here a non-member function?=