From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A87353858D1E; Thu, 18 Jan 2024 22:53:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A87353858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705618388; bh=GHV1F/+Xq0Z1wgg4f009lsS222FvzNVCPJQBzVsx2Tg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IAzgdq0G+tr86oShELkPRDY6xLrme04CTKzsCdiuPrPOShjgplV+AJfunrAfF6oar 0KWxX53ykZPJCT5VMrNIkbFD7jLkHSJBc8yotWC8CqbmnbSTwGPaIEODKX7Wwfuaeo FGpXq6deobAMdS9DRNK+40Lr0pVTOsBXsTyNwNUA= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/111410] Bogus Wdangling-reference warning with ranges pipe expression in for loop Date: Thu, 18 Jan 2024 22:53:07 +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: 14.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek 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=3D111410 --- Comment #1 from Marek Polacek --- Thanks for the report. I think we should disable the warning for operator| coming from std::ranges.=