From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 94BEC3858D1E; Thu, 10 Feb 2022 23:28:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 94BEC3858D1E From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/104373] [12 regression] bogus -Wmaybe-uninitialized warning with array new Date: Thu, 10 Feb 2022 23:28:52 +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: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 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 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: Thu, 10 Feb 2022 23:28:52 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104373 --- Comment #6 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:50243f4918c2ed7f1ddbf0e8df97a37aee73ebf2 commit r12-7188-g50243f4918c2ed7f1ddbf0e8df97a37aee73ebf2 Author: Jakub Jelinek Date: Fri Feb 11 00:27:11 2022 +0100 testsuite: Fix up g++.dg/warn/Wuninitialized-32.C test for ilp32 [PR104= 373] The testcase FAILs whenever size_t is not unsigned long: FAIL: g++.dg/warn/Wuninitialized-32.C -std=3Dc++98 (test for excess er= rors) Excess errors: .../gcc/testsuite/g++.dg/warn/Wuninitialized-32.C:4:7: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter [-fpermissive] Fixed by using __SIZE_TYPE__ instead of unsigned long. 2022-02-11 Jakub Jelinek PR tree-optimization/104373 * g++.dg/warn/Wuninitialized-32.C (operator new[]): Use __SIZE_TYPE__ as type of the first argument instead of unsigned long.=