From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 880C43858C52; Sat, 4 Feb 2023 00:33:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 880C43858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675470810; bh=lEM216v0R5wHSRIL6LFH8b5E9+1PvSS7s2nsOlM8NCQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HPf7GTSlmgQY309J2Zo+G0urRl957ArSe+Pf9Ng3yr1bOJ3D9+thQwadCfltKVMAd 5+134wkFHifaJhFt8wobnQi5JDWpKzWQ31e40d6pOyihpMW473JxPX2OA6xgp234/+ tAUY4m0ExpJM9DogHQ9RlbccT4wleQuf8mUftngY= From: "alvaro.begue at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/108667] Spurious "may be used uninitialized [-Wmaybe-uninitialized]" warning Date: Sat, 04 Feb 2023 00:33:30 +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: 12.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: alvaro.begue 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: --- 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=3D108667 --- Comment #2 from Alvaro Begue --- Yes, this is a reduction of real code. I'm writing a signal class and I wro= te a small test for it. It worked fine when compiling unoptimized, but the optim= ized version gave me this odd warning. Would it be interesting to see the original code? It's only around 50 lines= of code.=