From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BF4F1387084B; Tue, 7 May 2024 10:51:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BF4F1387084B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1715079073; bh=ZHwJ8NqwoLS/5IU8AWnIjooBd/iZ6suB25pMSX9H7/s=; h=From:To:Subject:Date:From; b=dszfEe5M1D1u3d8u293EP/oVMlNbiaIwoAZu+9+1T1aDH6QRHBFVOppX0AyMoQc4g elhV+EvvzHO5GowvUpgQBi3gVyibwTSjEgcwjt5IRy+uksmnTr9fHjJKZv82PDX14G VzwVz2vxD10r5edtqnundQmIMN4xCdhKxpkP3VZs= From: "nilsgladitz at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114970] New: 32-bit ARM gcc-14.1 new false positive -Wunused-value Date: Tue, 07 May 2024 10:51:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 14.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nilsgladitz 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: 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=3D114970 Bug ID: 114970 Summary: 32-bit ARM gcc-14.1 new false positive -Wunused-value Product: gcc Version: 14.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: nilsgladitz at gmail dot com Target Milestone: --- Created attachment 58114 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D58114&action=3Dedit Testcase The attached reduced test case produces the following warning: test.cpp:6:43: warning: value computed is not used [-Wunused-value] 6 | std::string_view prefix(""); When compiling with: -Wall -std=3Dc++20 -O2 I see the warning when building for 32-bit ARM but not x86-64. There is no warning with GCC 13.2.0. Also seen with godbolt on "trunk": https://godbolt.org/z/GvbMMsfch=