From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CD1CF3858D28; Fri, 29 Apr 2022 06:33:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CD1CF3858D28 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/105423] Bogus -Werror=maybe-uninitialized with definitely initialized variable Date: Fri, 29 Apr 2022 06:33:28 +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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: WAITING 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: bug_status everconfirmed blocked cf_reconfirmed_on 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2022 06:33:28 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105423 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Ever confirmed|0 |1 Blocks| |24639 Last reconfirmed| |2022-04-29 --- Comment #1 from Richard Biener --- I'm getting > ~/install/gcc-12/usr/local/bin/g++ -S t.ii -O -Werror=3Dmaybe-uninitiali= zed t.ii: In instantiation of 'std::Trans_NS___cxx11_basic_string<_CharT, , >::Trans_NS___cxx11_basic_string() [with _CharT =3D char; _Traits =3D std::char_traits; =3D char]': t.ii:54:49: required from here t.ii:37:37: error: no matching function for call to 'std::Trans_NS___cxx11_basic_string::::._anon_0(std::allocator_traits >::pointer)' 37 | Trans_NS___cxx11_basic_string() : _M_dataplus(_M_local_data()) {} | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ t.ii:25:10: note: candidate: 'std::Trans_NS___cxx11_basic_string::::(= )' 25 | struct { | ^ t.ii:25:10: note: candidate expects 0 arguments, 1 provided ... so the testcase doesn't compile for me Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D24639 [Bug 24639] [meta-bug] bug to track all Wuninitialized issues=