public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "vvinayag at arm dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug build/27579] stap-probe.c : Invalid use of incomplete type ‘struct std::hash<exp_opcode>’ Date: Mon, 15 Mar 2021 15:51:34 +0000 [thread overview] Message-ID: <bug-27579-4717-q2a2KPmPbQ@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-27579-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=27579 --- Comment #4 from vvinayag at arm dot com --- Hi Tom, The previous patch fixes stap-probe.c and then the same issue happens in gdb/rust-exp.y. I will try the new patch. In file included from /usr/include/c++/4.8.2/bits/hashtable.h:35:0, from /usr/include/c++/4.8.2/unordered_map:47, from /src/binutils-gdb--gdb/gdb/rust-exp.y:45: /usr/include/c++/4.8.2/bits/hashtable_policy.h: In instantiation of ‘struct std::__detail::_Hash_code_base<exp_opcode, std::pair<const exp_opcode, std::unique_ptr<expr::operation> (*)(std::unique_ptr<expr::operation>&&, std::unique_ptr<expr::operation>&&)>, std::__detail::_Select1st, std::hash<exp_opcode>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, true>’: /usr/include/c++/4.8.2/bits/hashtable_policy.h:1402:10: required from ‘struct std::__detail::_Hashtable_base<exp_opcode, std::pair<const exp_opcode, std::unique_ptr<expr::operation> (*)(std::unique_ptr<expr::operation>&&, std::unique_ptr<expr::operation>&&)>, std::__detail::_Select1st, std::equal_to<exp_opcode>, std::hash<exp_opcode>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<true, false, true> >’ /usr/include/c++/4.8.2/bits/hashtable.h:174:11: required from ‘class std::_Hashtable<exp_opcode, std::pair<const exp_opcode, std::unique_ptr<expr::operation> (*)(std::unique_ptr<expr::operation>&&, std::unique_ptr<expr::operation>&&)>, std::allocator<std::pair<const exp_opcode, std::unique_ptr<expr::operation> (*)(std::unique_ptr<expr::operation>&&, std::unique_ptr<expr::operation>&&)> >, std::__detail::_Select1st, std::equal_to<exp_opcode>, std::hash<exp_opcode>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true> >’ /usr/include/c++/4.8.2/bits/unordered_map.h:100:18: required from ‘class std::unordered_map<exp_opcode, std::unique_ptr<expr::operation> (*)(std::unique_ptr<expr::operation>&&, std::unique_ptr<expr::operation>&&)>’ /src/binutils-gdb--gdb/gdb/rust-exp.y:2205:60: required from here /usr/include/c++/4.8.2/bits/hashtable_policy.h:1070:12: error: invalid use of incomplete type ‘struct std::hash<exp_opcode>’ struct _Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2, ^ In file included from /usr/include/c++/4.8.2/bits/basic_string.h:3033:0, from /usr/include/c++/4.8.2/string:52, from /usr/include/c++/4.8.2/stdexcept:39, from /usr/include/c++/4.8.2/array:38, from /usr/include/c++/4.8.2/tuple:39, from /usr/include/c++/4.8.2/functional:55, from /src/binutils-gdb--gdb/gdb/../gdbsupport/ptid.h:35, from /src/binutils-gdb--gdb/gdb/../gdbsupport/common-defs.h:123, from /src/binutils-gdb--gdb/gdb/defs.h:28, from /src/binutils-gdb--gdb/gdb/rust-exp.y:32: /usr/include/c++/4.8.2/bits/functional_hash.h:58:12: error: declaration of ‘struct std::hash<exp_opcode>’ struct hash; -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2021-03-15 15:51 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-03-15 11:37 [Bug gdb/27579] New: " vvinayag at arm dot com 2021-03-15 14:58 ` [Bug build/27579] " tromey at sourceware dot org 2021-03-15 15:01 ` tromey at sourceware dot org 2021-03-15 15:10 ` vvinayag at arm dot com 2021-03-15 15:49 ` tromey at sourceware dot org 2021-03-15 15:49 ` tromey at sourceware dot org 2021-03-15 15:51 ` vvinayag at arm dot com [this message] 2021-03-15 16:08 ` tromey at sourceware dot org 2021-03-15 16:54 ` vvinayag at arm dot com 2021-03-15 17:32 ` cvs-commit at gcc dot gnu.org 2021-03-15 17:35 ` tromey at sourceware dot org 2021-03-15 17:36 ` tromey at sourceware dot 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-27579-4717-q2a2KPmPbQ@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).