* [OB PATCH] Fix compilation error with clang in gdb/testsuite/gdb.cp/exception.cc
@ 2020-04-20 14:08 Gary Benson
0 siblings, 0 replies; only message in thread
From: Gary Benson @ 2020-04-20 14:08 UTC (permalink / raw)
To: gdb-patches
Clang fails to compile the above file, with the following error:
warning: using directive refers to implicitly-defined namespace 'std'
This prevents the following testcase from executing:
gdb.cp/exception.exp
---
gdb/testsuite/ChangeLog | 4 ++++
gdb/testsuite/gdb.cp/exception.cc | 2 --
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/gdb/testsuite/gdb.cp/exception.cc b/gdb/testsuite/gdb.cp/exception.cc
index 034c9dc..813c160 100644
--- a/gdb/testsuite/gdb.cp/exception.cc
+++ b/gdb/testsuite/gdb.cp/exception.cc
@@ -17,8 +17,6 @@
// Test file for exception handling support.
-using namespace std;
-
int foo (int i)
{
if (i < 32)
--
1.8.3.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-20 14:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-20 14:08 [OB PATCH] Fix compilation error with clang in gdb/testsuite/gdb.cp/exception.cc Gary Benson
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).