From: Richard Sandiford Date: Fri, 26 Jun 2015 16:50:19 +0000 (+0000) Subject: hash-map.h (hash_map::traverse): Use the definition of the Key typedef rather than... X-Git-Tag: basepoints/gcc-7~6050 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5265e7ba854d41eb46b353de7e011043f882dae6;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index af039248c15e..6f54c22927a9 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 cd97d354f1c0..59794eb10428 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 ();