From: rsandifo Date: Wed, 18 Nov 2015 14:31:10 +0000 (+0000) Subject: PR 68406: Avoid problem with older host compilers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2479ea685bb8279fc269659d7d88998a76892934;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e3c11fe0372f..620a3105c1cc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-11-18 Richard Sandiford + + PR bootstrap/68406 + * hash-set.h (hash_set::traverse): Expand Key typedef. + 2015-11-18 Martin Liska * config/arm/arm.c (arm_valid_target_attribute_p): Finalize diff --git a/gcc/hash-set.h b/gcc/hash-set.h index 679d2b6df645..8a7c9a00c178 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 + template void traverse (Arg a) const { for (typename hash_table::iterator iter = m_table.begin ();