summaryrefslogtreecommitdiff
path: root/gcc/hash-set.h
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2015-11-18 14:31:10 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2015-11-18 14:31:10 +0000
commit2479ea685bb8279fc269659d7d88998a76892934 (patch)
tree576b822340c4bbe0496edac99715696e9b6d8fc9 /gcc/hash-set.h
parent24086b436e13f6d58b8bada304542f7c8835e74e (diff)
downloadgcc-2479ea685bb8279fc269659d7d88998a76892934.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230549 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/hash-set.h')
-rw-r--r--gcc/hash-set.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/hash-set.h b/gcc/hash-set.h
index 679d2b6df64..8a7c9a00c17 100644
--- a/gcc/hash-set.h
+++ b/gcc/hash-set.h
@@ -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 ();