public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "spam_hole at shaw dot ca" <sourceware-bugzilla@sourceware.org> 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 [thread overview] Message-ID: <bug-31399-4717@http.sourceware.org/bugzilla/> (raw) https://sourceware.org/bugzilla/show_bug.cgi?id=31399 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 error: ======== 8< ======== 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 = static_cast<T> (v); ^~~~~~~~~~~~~~~~~~ ../../gdb/tui/tui-command.c:65:15: note: in instantiation of function template specialization 'gdb::checked_static_cast<tui_cmd_window *, tui_win_info>' requested here WINDOW *w = TUI_CMD_WIN->handle.get (); ^ ../../gdb/tui/tui-data.h:299:9: note: expanded from macro 'TUI_CMD_WIN' (gdb::checked_static_cast<tui_cmd_window *> (tui_win_list[CMD_WIN])) ^ 1 error generated. ======== 8< ======== 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=binutils-gdb.git;a=commit;h=85a427b26c5cae6af6ed0b4358d44a77b5a3b2c0). I believe dynamic_cast is needed instead of static_cast. -- You are receiving this mail because: You are on the CC list for the bug.
next reply other threads:[~2024-02-19 3:08 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-02-19 3:08 spam_hole at shaw dot ca [this message] 2024-02-19 14:34 ` [Bug tui/31399] " ssbssa at sourceware dot org 2024-02-22 15:06 ` [Bug build/31399] " vries at gcc dot gnu.org 2024-02-22 16:19 ` vries at gcc dot gnu.org 2024-02-24 10:00 ` cvs-commit at gcc dot gnu.org 2024-02-24 10:01 ` vries at gcc dot gnu.org 2024-03-19 14:57 ` cvs-commit at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-31399-4717@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).