From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 015353861826; Mon, 19 Feb 2024 03:08:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 015353861826 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1708312121; bh=YnZL5srL9PNfHmr0JuKLnt31iK94/w4OVjnE8Ig7zS0=; h=From:To:Subject:Date:From; b=gGWvUt3zBobHwqgu8S3FdCwQOtfcGDwU81cAjyc2bIu/CVAYwj5R9PDR8C+ffAs7N pbeR9ggmy5gp+5iCVa5UzuFEb7VmynZVPEquHM0rINCTGNP0zOjcmcFREsfmjUvdIk sX+2wnk2Gl9BEQAEAhaYnkiZIIXe9m28zlH9j1zk= From: "spam_hole at shaw dot ca" To: gdb-prs@sourceware.org Subject: [Bug tui/31399] New: Build fails on macOS: error: cannot cast 'tui_win_info *' to 'tui_cmd_window *' via virtual base 'tui_win_info' Date: Mon, 19 Feb 2024 03:08:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: tui X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: spam_hole at shaw dot ca X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D31399 Bug ID: 31399 Summary: Build fails on macOS: error: cannot cast 'tui_win_info *' to 'tui_cmd_window *' via virtual base 'tui_win_info' Product: gdb Version: HEAD Status: UNCONFIRMED Severity: normal Priority: P2 Component: tui Assignee: unassigned at sourceware dot org Reporter: spam_hole at shaw dot ca Target Milestone: --- Building binutils+gdb from binutils-2.42 source fails with the following er= ror: =3D=3D=3D=3D=3D=3D=3D=3D 8< =3D=3D=3D=3D=3D=3D=3D=3D In file included from ../../gdb/tui/tui-command.c:24: In file included from ../../gdb/tui/tui-data.h:28: ../../gdb/../gdbsupport/gdb-checked-static-cast.h:63:14: error: cannot cast 'tui_win_info *' to 'tui_cmd_window *' via virtual base 'tui_win_info' T result =3D static_cast (v); ^~~~~~~~~~~~~~~~~~ ../../gdb/tui/tui-command.c:65:15: note: in instantiation of function templ= ate specialization 'gdb::checked_static_cast' requested here WINDOW *w =3D TUI_CMD_WIN->handle.get (); ^ ../../gdb/tui/tui-data.h:299:9: note: expanded from macro 'TUI_CMD_WIN' (gdb::checked_static_cast (tui_win_list[CMD_WIN])) ^ 1 error generated. =3D=3D=3D=3D=3D=3D=3D=3D 8< =3D=3D=3D=3D=3D=3D=3D=3D Build fails with Apple clang version 15.0.0 (clang-1500.1.0.2.5) on macOS 13.6.1 (22G313). This is a regression apparently originating in commit 85a427b26c5cae6af6ed0b4358d44a77b5a3b2c0 (https://git.libre-soc.org/?p=3Dbinutils-gdb.git;a=3Dcommit;h=3D85a427b26c5= cae6af6ed0b4358d44a77b5a3b2c0). I believe dynamic_cast is needed instead of static_cast. --=20 You are receiving this mail because: You are on the CC list for the bug.=