[Bug bootstrap/61598] [4.10 regression] fold-const.c:14755:37: error: no matching function for call to 'hash_table<pointer_hash<tree_node> >::find_slot

tsaunders at mozilla dot com gcc-bugzilla@gcc.gnu.org
Tue Jun 24 19:09:00 GMT 2014


Trevor Saunders <tsaunders at mozilla dot com> changed:

           What    |Removed                     |Added
                 CC|                            |tsaunders at mozilla dot com

--- Comment #2 from Trevor Saunders <tsaunders at mozilla dot com> ---
So we went from find_slot taking a const uninon tree_node *& to taking a union
tree_node * const& I tend to think that the later is more "correct" since the
type of thing in the hash table and hence the thing that is const is a union
tree_node *.  Further the result of find_slot is a tree_node ** which is not

So I think the appropriate solution is to just const_cast to tree, but a sanity
check of that would be nice.

More information about the Gcc-bugs mailing list