diff options
Diffstat (limited to 'gdb/dwarf2')
-rw-r--r-- | gdb/dwarf2/cooked-index.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/dwarf2/cooked-index.c b/gdb/dwarf2/cooked-index.c index e024c78..1b08ba4 100644 --- a/gdb/dwarf2/cooked-index.c +++ b/gdb/dwarf2/cooked-index.c @@ -93,7 +93,12 @@ int cooked_index_entry::compare (const char *stra, const char *strb, comparison_mode mode) { +#if defined (__GNUC__) && !defined (__clang__) && __GNUC__ <= 7 + /* Work around error with gcc 7.5.0. */ + auto munge = [] (char c) -> unsigned char +#else auto munge = [] (char c) constexpr -> unsigned char +#endif { /* Treat '<' as if it ended the string. This lets something like "func<t>" match "func<t<int>>". See the "Breakpoints in |