From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 668C63858C5F; Sat, 6 Apr 2024 15:12:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 668C63858C5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1712416329; bh=iTXAkXXQ5fqbD9hoPNmJeKWfwu6C/CQdur9BrPdVp9U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=eYVCEIMcJH9Ie9Np4KBNPuYS2j2NIrzth0J9c7SMAnWcFJ6legFgOfsUNDCvVCImE CNB4eVMaUmRX6aUCbnpPpy6V4On29oObDtcC33BqKokTl0lvcoKYAYWIYF+8qTPdNk owZqyzuAYyDbV03f9janPoSWknVgNNGgrPQmMSCM= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug gdb/31422] Replace gdb::array_view with std::span Date: Sat, 06 Apr 2024 15:12:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31422 --- Comment #3 from Tom Tromey --- I have a patch for this, but really using std::span means making even more changes, e.g.: if (dwarf2_evaluate_property (&prop, nullptr, &addr_stack, &result, {addr_stack.addr})) return (int) (result - addr_stack.addr); ../../binutils-gdb/gdb/gnu-v3-abi.c: In function =E2=80=98int gnuv3_baseclass_offset(type*, int, const bfd_byte*, LONGEST, CORE_ADDR, con= st value*)=E2=80=99: ../../binutils-gdb/gdb/gnu-v3-abi.c:495:36: error: could not convert =E2=80=98{addr_stack.property_addr_info::addr}=E2=80=99 from =E2=80=98=E2=80=99 to =E2=80=98gdb::span=E2=80=99 {aka =E2= =80=98std::span=E2=80=99} --=20 You are receiving this mail because: You are on the CC list for the bug.=