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
This commit is contained in:
Gary Benson 2020-04-20 15:05:01 +01:00
parent fa93cc8f35
commit 2523028544
2 changed files with 4 additions and 2 deletions

View 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

View File

@ -17,8 +17,6 @@
// Test file for exception handling support.
using namespace std;
int foo (int i)
{
if (i < 32)