diff options
author | Ian Lance Taylor <iant@google.com> | 2007-11-15 20:41:19 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-11-15 20:41:19 +0000 |
commit | b01c0a4adb779da9df392741b6969b872a905bb1 (patch) | |
tree | 076daf544740f8d1bcf392ffbb7e08ba910c92d6 /gold/symtab.cc | |
parent | 1b39d5c085209598c10bcca5eb503ff7d74f056c (diff) | |
download | gdb-b01c0a4adb779da9df392741b6969b872a905bb1.zip gdb-b01c0a4adb779da9df392741b6969b872a905bb1.tar.gz gdb-b01c0a4adb779da9df392741b6969b872a905bb1.tar.bz2 |
Workaround bug in gcc 4.0.3 STL.
Diffstat (limited to 'gold/symtab.cc')
-rw-r--r-- | gold/symtab.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gold/symtab.cc b/gold/symtab.cc index c918db3..31dcc7f 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<std::string> line_nums; - Unordered_set<Symbol_location, Symbol_location_hash>::const_iterator - locs; - for (locs = it->second.begin(); locs != it->second.end(); ++locs) + for (Unordered_set<Symbol_location, Symbol_location_hash>::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 |