From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3A7373858CDB; Wed, 4 Oct 2023 20:00:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3A7373858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696449610; bh=uFI4kk0rues8ZdRd6Iu9GwKG4Zua7F2adeeVn+yfOS4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dUoU6qhHG4hTfYL5cdv9vogyd+p1KmksSGf5WjAJNM8WLdSpaOMFDehEl0JAn5U7s 2syL+FXmvEW+SRNm8Lx0Kdz2OxQqf0ZEco+hyzwuUHiShZFFJz4vhTS8VXOSB1jZll kKaucn89WoRRN2iml/hWAO4+6jv+fMWi+Hh9K+uM= From: "jonathan.leffler at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/111693] Online manual mentions -Wuse-after-free but does not document it further Date: Wed, 04 Oct 2023 20:00:10 +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.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jonathan.leffler at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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=3D111693 --- Comment #5 from Jonathan Leffler --- The link https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gcc/C_002b_002b-Dialect-Options.h= tml#index-Wuse-after-free is to the "Options Controlling C++ Dialect". I was using the C compiler, not the C++ compiler, so it is not at all obvio= us that I should look at that page =E2=80=94 in fact, that page is irrelevant = to users of the C compiler. The information there should be either copied to the C "Warnings Options" p= age, or linked to from the C page, where -Wuse-after-free is only mentioned and = not defined. Incidentally, under "-Wuse-after-free=3D1" on the C++ page, there's a typo = in: whether or not the call resulted in an actual reallocatio of memory The 'n' is missing from 'reallocation'.=