From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AE7E73858D28; Wed, 3 May 2023 20:56:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AE7E73858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683147373; bh=QrOSxMRlgsS8r8+eKiXzOr76VFCi8tSI0bRdz2kNmas=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OS0uDlQSxNdxGitHYg0KJ1gTkIOIgrkhnEvuoLD5SkR/QPaj912YLS3dyXliV21Rd otRcIIigk//ZyPL9lSH974N884/btSJLHd2OpNq4Z91JgdXTAcfxJtqMAof//gyo9X CI94bpob0Dj2m8KEKM+2Q9rvPSNKlFzsgA4INr8E= From: "psmith at gnu dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109720] -Wmaybe-uninitialized triggering when I can see no path that would allow it Date: Wed, 03 May 2023 20:56:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: psmith at gnu dot 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=3D109720 --- Comment #1 from Paul Smith --- Hm, maybe it's due to the union. Maybe GCC can't grok that we ensure that = we only use the dynamic_bitset leg of the union after we've initialized it? I wonder if this warning could just assume that if the code uses one leg of= the union, that the other legs should be avoided. Or something like that. Els= e I don't see how this warning can ever be used in code which uses unions.=