clang 11 with libc++'s <algorithm> fails to match the existing
operator<() for std::less<> since the method is not marked const.
gdb/ChangeLog:
* dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
+2021-05-19 John Baldwin <jhb@FreeBSD.org>
+
+ * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
+
2021-05-17 Tom Tromey <tom@tromey.com>
* dwarf2/read.h: Update include.
{}
/* This is used when sorting. */
- bool operator< (const tu_abbrev_offset &other)
+ bool operator< (const tu_abbrev_offset &other) const
{
return abbrev_offset < other.abbrev_offset;
}