From: Gary Benson Date: Mon, 20 Apr 2020 14:05:01 +0000 (+0100) Subject: Fix compilation error with clang in gdb/testsuite/gdb.cp/exception.cc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=25230285442ed10ec0f65d770d0a188ff8680b8f;p=binutils-gdb.git 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 --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 8ee15208cea..a744a245be6 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2020-04-20 Gary Benson + + * gdb.cp/exception.cc: Fix compilation error with clang. + 2020-04-20 Gary Benson * gdb/testsuite/gdb.trace/tspeed.c: Fix compilation error with diff --git a/gdb/testsuite/gdb.cp/exception.cc b/gdb/testsuite/gdb.cp/exception.cc index 034c9dc8664..813c1605c06 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)