Commit 1fcb9641 by Richard Sandiford Committed by Richard Sandiford

PR 68406: Avoid problem with older host compilers

Older compilers require the Key typedef to be expanded for the traversal
function templates.  This patch uses the same approach as we did for
hash_map.

Tested on x86_64-linux-gnu.

gcc/
	PR bootstrap/68406
	* hash-set.h (hash_set::traverse): Expand Key typedef.

From-SVN: r230549
parent 4a353e16
2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
PR bootstrap/68406
* hash-set.h (hash_set::traverse): Expand Key typedef.
2015-11-18 Martin Liska <mliska@suse.cz>
* config/arm/arm.c (arm_valid_target_attribute_p): Finalize
......@@ -68,7 +68,7 @@ public:
/* Call the call back on each pair of key and value with the passed in
arg. */
template<typename Arg, bool (*f)(const Key &, Arg)>
template<typename Arg, bool (*f)(const typename Traits::value_type &, Arg)>
void traverse (Arg a) const
{
for (typename hash_table<Traits>::iterator iter = m_table.begin ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment