From 5265e7ba854d41eb46b353de7e011043f882dae6 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Fri, 26 Jun 2015 16:50:19 +0000 Subject: [PATCH] hash-map.h (hash_map::traverse): Use the definition of the Key typedef rather than the typedef itself. gcc/ * hash-map.h (hash_map::traverse): Use the definition of the Key typedef rather than the typedef itself. From-SVN: r225021 --- gcc/ChangeLog | 5 +++++ gcc/hash-map.h | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index af039248c15..6f54c22927a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-06-26 Richard Sandiford + + * hash-map.h (hash_map::traverse): Use the definition of the + Key typedef rather than the typedef itself. + 2015-06-26 Martin Jambor PR debug/66301 diff --git a/gcc/hash-map.h b/gcc/hash-map.h index cd97d354f1c..59794eb1042 100644 --- a/gcc/hash-map.h +++ b/gcc/hash-map.h @@ -169,7 +169,8 @@ public: /* Call the call back on each pair of key and value with the passed in arg. */ - template + template void traverse (Arg a) const { for (typename hash_table::iterator iter = m_table.begin (); @@ -177,7 +178,8 @@ public: f ((*iter).m_key, (*iter).m_value, a); } - template + template void traverse (Arg a) const { for (typename hash_table::iterator iter = m_table.begin (); -- 2.30.2