]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Include needed unordered_map header
authorMartin Simmons <martin@lispworks.com>
Mon, 24 Jun 2024 11:34:59 +0000 (12:34 +0100)
committerTom Tromey <tom@tromey.com>
Mon, 24 Jun 2024 12:19:58 +0000 (06:19 -0600)
Compiling on FreeBSD 13.2 with the default clang version 14.0.5 and top level
configure options --with-python=/usr/local/bin/python3.9 gives this error:

  CXX    ada-exp.o
./../binutils-gdb/gdb/ada-exp.y:100:8: error: no template named 'unordered_map' in namespace 'std'
  std::unordered_map<std::string, std::vector<ada_index_var_operation *>>
  ~~~~~^
1 error generated.

This change fixes it.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31918
Approved-By: Tom Tromey <tom@tromey.com>
gdb/ada-exp.y

index c2ab1de7136aa8d7f5c535636138fb27fc0df544..0126db5f2bee5c781488c697b4d9b1c66e2c0354 100644 (file)
@@ -36,6 +36,7 @@
 %{
 
 #include <ctype.h>
+#include <unordered_map>
 #include "expression.h"
 #include "value.h"
 #include "parser-defs.h"