From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 317E43858C20; Tue, 22 Nov 2022 10:58:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 317E43858C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669114681; bh=fcJ/FmT0aONA1UEmV6TBQkOqMRjdMt8g9FDzgExGq6c=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XYmjxYPittisy+lvHc0aaycjfjh0uC/WxjjFTVQxlZvMtKlyIHglcq2PfVLwFfLSS nz162ehHxcEkroXlLZG63Ul4R0x9nsBFd7KaQt82UbEvptZybFZgrWovuT6MBcmu1H iQuYPgs6KqdUNnp5c20ZTnX7q/qaAMzLlBrsbUTg= From: "marco.clemencic at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107138] [12/13 regression] std::variant triggers false-positive 'may be used uninitialized' warning Date: Tue, 22 Nov 2022 10:57:00 +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: 12.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: marco.clemencic at gmail dot com 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: 12.3 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=3D107138 --- Comment #6 from Marco Clemencic --- I seem to be stumbling on more and more of these spurious warnings. The latest one is from a header that is found in a directory added to the search path with "-isystem", and in all cases the warnings talk about metho= ds and functions that are "inlined from ...". I didn't manage to produce a minimal test case proving it, but I start suspecting that "-isystem" is ignored (in some circumstances) when functions get inlined.=