Fix compilation error with clang in gdb/testsuite/gdb.cp/exception.cc
authorGary Benson <gbenson@redhat.com>
Mon, 20 Apr 2020 14:05:01 +0000 (15:05 +0100)
committerGary Benson <gbenson@redhat.com>
Mon, 20 Apr 2020 14:06:13 +0000 (15:06 +0100)
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
gdb/testsuite/gdb.cp/exception.cc

index 8ee15208ceaf3f0b79b48d109c95cd1ef69bc40d..a744a245be63a7f666282c42f35b13a9ab75a219 100644 (file)
@@ -1,3 +1,7 @@
+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
index 034c9dc8664a9634e6ee0352454a45057594b746..813c1605c065ba68b0b1c987c8986533ba9f1aad 100644 (file)
@@ -17,8 +17,6 @@
 
 // Test file for exception handling support.
 
-using namespace std;
-
 int foo (int i)
 {
   if (i < 32)