aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2020-04-20 15:05:01 +0100
committerGary Benson <gbenson@redhat.com>2020-04-20 15:06:13 +0100
commit25230285442ed10ec0f65d770d0a188ff8680b8f (patch)
tree0960b7d89ec35ccddefeb7a00a685f70d0fa8082 /gdb
parentfa93cc8f35dbed69c3c47aa803686d87f2143779 (diff)
downloadgdb-25230285442ed10ec0f65d770d0a188ff8680b8f.zip
gdb-25230285442ed10ec0f65d770d0a188ff8680b8f.tar.gz
gdb-25230285442ed10ec0f65d770d0a188ff8680b8f.tar.bz2
Fix compilation error with clang in gdb/testsuite/gdb.cp/exception.cc
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
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.cp/exception.cc2
2 files changed, 4 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 8ee1520..a744a24 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2020-04-20 Gary Benson <gbenson@redhat.com>
+ * gdb.cp/exception.cc: Fix compilation error with clang.
+
+2020-04-20 Gary Benson <gbenson@redhat.com>
+
* gdb/testsuite/gdb.trace/tspeed.c: Fix compilation error with
clang.
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)