From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 682A13858439; Thu, 2 Mar 2023 08:30:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 682A13858439 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677745851; bh=jZGrfOKUcgmIqZTyyglj9RR9ls6HozlIoeHYTpeBLgQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HkZ8c2mUwlpsq6aRQdj4tSgaTY1wl00/GbFlvqb/JZsGl56Ettsb/9uKG03kWZnZf E6tffXkby23IFvqaSPpASA0mr6NK1uBN94vJUUFDb/HapBPaeIxaeJoscmxkbF+hQ3 XuHYTcW5RgVgVzIAdwXsKENa+SEThCVqI/qm2lnY= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108165] -Wdangling-reference false positive Date: Thu, 02 Mar 2023 08:30:48 +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: 13.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin 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=3D108165 --- Comment #12 from Martin Li=C5=A1ka --- (In reply to Marek Polacek from comment #11) > No, because as Comment 9 says, there's no good way to suppress the warnin= g.=20 > I'm currently leaning towards closing the BZ and suggesting adding a #pra= gma > to disable the warning. Another solution would be the removal of the warning from -Wall?=