From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 22E9C385841E; Tue, 22 Nov 2022 12:31:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 22E9C385841E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669120279; bh=Uap57RQS2TFN9ZnSVLA2xr4o3v9CvzoPbvlC0mBx/IM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=nnR7U+tXYc69VbpsCQnx6FLzwCiH+qhUe8zG1FQJ0PPjmSoXdugfZ8xv46oHygi4Q 0lqQQSP9mEbw7bf6qujCiqNGxCQVHDIPb/yyrXhEwClez+RAfSacyyQnRCG5yWra2p V1UTHCME+ExzURoFPhcCqkZICFLtVevdee0Ip1N0= From: "redi at gcc dot gnu.org" 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 12:31:18 +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: redi at gcc dot gnu.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: 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 #7 from Jonathan Wakely --- No, it's just that some warnings coming from code in system headers are no longer suppressed if they are the result of a template instantiation trigge= red in user code. That was a deliberate choice (although IMHO the set of warnin= gs that now trigger in system headers are not the ones I actually thought woul= d be useful).=