From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A063B3858C2C; Mon, 17 Apr 2023 08:46:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A063B3858C2C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681721211; bh=08nl/Iq8CEytkV1pAA2B0FntJ6FiFicHOOyiwF+cn/M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OiOwfQLlfFeHMn+NTODcRvt1XvR7TN2Uz2UCR79BgpiNnPk4xIybcWai/8LQ1TmYV Txf//l8xyrXShTt0nW0wfJrafigF8leDFNDvrdC+iI3cvb1MdOX5umi0rpukOiJleq m/TQn72B1P9BTRm/zLI629gq4IQIBRTb2185LZKE= From: "daniel.klauer at gin dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/95825] [10/11/12/13 Regression] boost::optional -Wuninitialized with -fsanitize=address Date: Mon, 17 Apr 2023 08:46:51 +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: 10.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: daniel.klauer at gin dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 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=3D95825 --- Comment #9 from daniel.klauer at gin dot de --- Unless I'm missing something, this is not about unions. boost::optional (at least from boost 1.80.0) does not always use unions; instead it has two possible implementations: optional_base, which uses unions, and tc_optional_base, which does not. The original test case triggers the tc_optional_base case too.=