From: Ian Lance Taylor Date: Thu, 15 Nov 2007 20:41:19 +0000 (+0000) Subject: Workaround bug in gcc 4.0.3 STL. X-Git-Tag: sid-snapshot-20071201~124 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b01c0a4adb779da9df392741b6969b872a905bb1;p=thirdparty%2Fbinutils-gdb.git Workaround bug in gcc 4.0.3 STL. --- diff --git a/gold/symtab.cc b/gold/symtab.cc index c918db32933..31dcc7f08a9 100644 --- a/gold/symtab.cc +++ b/gold/symtab.cc @@ -1890,9 +1890,10 @@ Symbol_table::detect_odr_violations(const char* output_file_name) const // We use a sorted set so the output is deterministic. std::set line_nums; - Unordered_set::const_iterator - locs; - for (locs = it->second.begin(); locs != it->second.end(); ++locs) + for (Unordered_set::const_iterator + locs = it->second.begin(); + locs != it->second.end(); + ++locs) { // We need to lock the object in order to read it. This // means that we can not run inside a Task. If we want to