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:
parent
fa93cc8f35
commit
2523028544
@ -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>
|
2020-04-20 Gary Benson <gbenson@redhat.com>
|
||||||
|
|
||||||
* gdb/testsuite/gdb.trace/tspeed.c: Fix compilation error with
|
* gdb/testsuite/gdb.trace/tspeed.c: Fix compilation error with
|
||||||
|
@ -17,8 +17,6 @@
|
|||||||
|
|
||||||
// Test file for exception handling support.
|
// Test file for exception handling support.
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
int foo (int i)
|
int foo (int i)
|
||||||
{
|
{
|
||||||
if (i < 32)
|
if (i < 32)
|
||||||
|
Loading…
Reference in New Issue
Block a user