2009-09-25 Roland McGrath <roland@redhat.com>
+ * c++/dwarf (dwarf::location_attr::operator==): Compare a singleton as
+ a list so it matches a one-element full-range list.
+
* c++/values.cc (dwarf::range_list::const_iterator::const_iterator):
For begin case, actually get the offset from the attribute!
(dwarf::location_attr::begin): Likewise.
|| std::find_if (other.begin (), other.end (),
nonempty<typename other_attr::value_type> ()
) == other.end ());
- if (!is_list ())
- return (!other.is_list () && !other.empty ()
- && location () == other.location ());
- return other.is_list () && subr::container_equal (*this, other);
+ if (!is_list () && !other.is_list ())
+ return !other.empty () && location () == other.location ();
+
+ return subr::container_equal (*this, other);
}
template<typename other_file>
inline bool operator!= (const other_file &other) const