Workaround bug in gcc 4.0.3 STL.

This commit is contained in:
Ian Lance Taylor 2007-11-15 20:41:19 +00:00
parent 1b39d5c085
commit b01c0a4adb

View file

@ -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. // We use a sorted set so the output is deterministic.
std::set<std::string> line_nums; std::set<std::string> line_nums;
Unordered_set<Symbol_location, Symbol_location_hash>::const_iterator for (Unordered_set<Symbol_location, Symbol_location_hash>::const_iterator
locs; locs = it->second.begin();
for (locs = it->second.begin(); locs != it->second.end(); ++locs) locs != it->second.end();
++locs)
{ {
// We need to lock the object in order to read it. This // 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 // means that we can not run inside a Task. If we want to