* [PATCH] Include needed unordered_map header
@ 2024-06-24 11:34 Martin Simmons
2024-06-24 12:20 ` Tom Tromey
2024-06-24 12:24 ` Tom Tromey
0 siblings, 2 replies; 3+ messages in thread
From: Martin Simmons @ 2024-06-24 11:34 UTC (permalink / raw)
To: gdb-patches; +Cc: Martin Simmons
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.
---
gdb/ada-exp.y | 1 +
1 file changed, 1 insertion(+)
diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y
index c2ab1de7136..0126db5f2be 100644
--- a/gdb/ada-exp.y
+++ b/gdb/ada-exp.y
@@ -36,6 +36,7 @@
%{
#include <ctype.h>
+#include <unordered_map>
#include "expression.h"
#include "value.h"
#include "parser-defs.h"
--
2.45.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Include needed unordered_map header
2024-06-24 11:34 [PATCH] Include needed unordered_map header Martin Simmons
@ 2024-06-24 12:20 ` Tom Tromey
2024-06-24 12:24 ` Tom Tromey
1 sibling, 0 replies; 3+ messages in thread
From: Tom Tromey @ 2024-06-24 12:20 UTC (permalink / raw)
To: Martin Simmons; +Cc: gdb-patches
>>>>> Martin Simmons <martin@lispworks.com> writes:
> 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:
Thanks. I've added the Bug trailer and my Approved-By and I'm checking
this in.
Tom
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Include needed unordered_map header
2024-06-24 11:34 [PATCH] Include needed unordered_map header Martin Simmons
2024-06-24 12:20 ` Tom Tromey
@ 2024-06-24 12:24 ` Tom Tromey
1 sibling, 0 replies; 3+ messages in thread
From: Tom Tromey @ 2024-06-24 12:24 UTC (permalink / raw)
To: Martin Simmons; +Cc: gdb-patches
>>>>> Martin Simmons <martin@lispworks.com> writes:
> 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.
I neglected to mention -- I'm putting this on the gdb-15 branch as well.
Tom
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-06-24 12:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-24 11:34 [PATCH] Include needed unordered_map header Martin Simmons
2024-06-24 12:20 ` Tom Tromey
2024-06-24 12:24 ` Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).