From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from kwanyin.sergiodj.net (kwanyin.sergiodj.net [158.69.185.54]) by sourceware.org (Postfix) with ESMTPS id C9A95388B02F for ; Sun, 3 May 2020 16:28:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C9A95388B02F Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [binutils-gdb] Fix compilation error with clang in gdb/testsuite/gdb.cp/exception.cc From: gdb-buildbot@sergiodj.net To: gdb-testers@sourceware.org Message-Id: <25230285442ed10ec0f65d770d0a188ff8680b8f@gdb-build> Date: Sun, 03 May 2020 12:28:48 -0400 X-Spam-Status: No, score=-15.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-testers@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-testers mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 May 2020 16:29:00 -0000 *** TEST RESULTS FOR COMMIT 25230285442ed10ec0f65d770d0a188ff8680b8f *** commit 25230285442ed10ec0f65d770d0a188ff8680b8f Author: Gary Benson AuthorDate: Mon Apr 20 15:05:01 2020 +0100 Commit: Gary Benson CommitDate: Mon Apr 20 15:06:13 2020 +0100 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 8ee15208ce..a744a245be 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 034c9dc866..813c1605c0 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)