From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 01F16385C318; Thu, 22 Sep 2022 13:19:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 01F16385C318 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663852800; bh=/BMeIo/I5fgmhzWrTj00uJdaM431lLWKvswh9/6h+mA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vSTSFPSgrNYL86SR6wyHLjofci4KfxYn3fR3Tnr6J67e08WwFJhYp/rwJ+9fVD8AR 4Wrh4ZQAT727wWmHdwR5sSQL0j0/BEKPRs5GpCNXRXp3BiMqLjZj40+LnykqI/audr WqCaEyzk76U6pWqOmGAXCL3yq3vDxFE9C159A1lI= From: "cvs-commit 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:19:59 +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: cvs-commit 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: 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 --- Comment #5 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:44dba051d72587828882cbb31118934a4fb06c1a commit r13-2776-g44dba051d72587828882cbb31118934a4fb06c1a Author: Richard Biener Date: Thu Sep 22 15:18:47 2022 +0200 tree-optimization/102801 - testcase for uninit diagnostic The following testcase is fixed in GCC 12+ PR tree-optimization/102801 gcc/testsuite/ * g++.dg/warn/Wuninitialized-33.C: New testcase.=