From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A45103857B8B; Thu, 22 Sep 2022 13:18:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A45103857B8B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663852730; bh=+3aS4ex05CeIyIawnnZp/+sn4xg/B8OHHsPN7wDwhcI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=JOrSj4i9gTWjFJMxNiCWHZflkhfRY0nPHfaC3ex2UVbvPl/Gpj2mQMmJfK85uypz/ X2OgJr7ngd9T7Ra619c6a6sEUHo/oNerRgyZ5rroRBLg+xijNu5gsF07Qjf+jKLGhx tELFtzD2dk5qLfF4e+O84t/C5kIwTIbv4PN9e1+I= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/102801] Incorrect -Wmaybe-uninitialized warning/interaction for a std::optional only when a nested struct is also present. Date: Thu, 22 Sep 2022 13:18:49 +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: 11.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED 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: cf_known_to_work bug_status resolution 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=3D102801 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |12.2.1, 13.0 Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #4 from Richard Biener --- The testcase no longer warns after GCC 12.2 or on GCC 13 trunk for me. I c= an re-confirm diagnostics with GCC 10 and GCC 11. I'm going to add the testca= se and close this bug.=