From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BC6933858D38; Wed, 24 Jan 2024 15:51:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BC6933858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706111496; bh=JQ42/Iwu9MxaWOKllYs3m1p9/L4BmjcZUnw2sU47oqs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mhKC4bm0zXqa7cCOD2o083Chm7tOeThnjGeQM002hyB5v8uSuXn4Fi2ecs1HCqpJx dkgiqR8uxsa7bmPSvV4AaWkwCrsjY/21EXkUGy59a7zGPW4XvzRmKRtSMRtaXX4iZ/ mfUEJfkqtlTbxQdGbSeJJElKVsZ7sVUufq85mk1g= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110075] Bogus -Wdangling-reference Date: Wed, 24 Jan 2024 15:51:35 +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.1.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek 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=3D110075 --- Comment #5 from Marek Polacek --- Yes, because we'd have to analyze the body of the function to see that it d= oes not return one of the parameters, which often we can't do. There will be an attribute soon to suppress that warning.=