From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1BD093858C78; Sun, 3 Dec 2023 21:40:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1BD093858C78 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701639638; bh=KQpyaovghKIBKbB8OzHFu80bRaErHGgOWhay9yR5foc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=P19rX2E457I3Lm8hVwvpFafkkh+wzbCqrCArDru48gQQHv3+WMfIdSWMlDlGjv2k1 93H8q+J3w2uhTQGJYFZKm1nXA8d7xbt9n1lTkvk5IdEg9AGK9JBoYtAmG1fb5Tou2Y yMKQogXl0q3B4p7mH9VCiIr79qOpAALnvLBe6j9s= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/112840] feature request: warn on incorrect tagged union value access Date: Sun, 03 Dec 2023 21:40:37 +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: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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=3D112840 --- Comment #1 from Andrew Pinski --- This seems more like something for analyzier rather than a generic warning = due to it requires keeping track of the path where the access is located.=