From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 97171385829B; Sat, 20 Jan 2024 22:40:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 97171385829B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705790411; bh=xtzTU2z2NwRyPD05x8xkclsdutlr5UsBUCu8+h2ItYU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dr68y/X07NFEXJGDa9gCp32U9Q+RnSTfuCUv3jq1iM3PYLl9+DROJGtN6i9C9395r R+2Zf1xjUsKgOCfgsW04FWwp8oa/LyXyMXisrGFWACvADty5hvnsU9qC0gcXpiefS/ PxChDwQXw0hk66JP+hheRuwZlCt6cPwi+m/64yy4= From: "sandra at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/109708] [c, doc] wdangling-pointer example broken Date: Sat, 20 Jan 2024 22:39:59 +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: unknown X-Bugzilla-Keywords: documentation X-Bugzilla-Severity: normal X-Bugzilla-Who: sandra at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: sandra 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=3D109708 --- Comment #2 from sandra at gcc dot gnu.org --- I was wondering if some subsequent patch might have caused the first exampl= e to regress rather than this being a documentation bug, but it did not give a diagnostic at the time the -Wdangling-pointer support was committed, either= .=20 I'll fiddle with the example a bit to make it better illustrate the differe= nce between level 1 and level 2, as well as making it work.=