On 02/09/20 10:22 -0700, sunil.k.pandey wrote:
On Linux/x86_64,

6bdbf0f37bda2587a4e82cbb956de7a159a397ae is the first bad commit
commit 6bdbf0f37bda2587a4e82cbb956de7a159a397ae
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Wed Sep 2 13:27:57 2020 +0100

   libstdc++: Break header cycle between <new> and <exception>

caused

FAIL: g++.old-deja/g++.abi/cxa_vec.C  -std=gnu++14 (test for excess errors)
FAIL: g++.old-deja/g++.abi/cxa_vec.C  -std=gnu++17 (test for excess errors)
FAIL: g++.old-deja/g++.abi/cxa_vec.C  -std=gnu++2a (test for excess errors)
FAIL: g++.old-deja/g++.abi/cxa_vec.C  -std=gnu++98 (test for excess errors)

with GCC configured with

../../gcc/configure 
--prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r11-2979/usr 
--enable-clocale=gnu --with-system-zlib --with-demangler-in-ld 
--with-fpmath=sse --enable-languages=c,c++,fortran --enable-cet --without-isl 
--enable-libmpx x86_64-linux --disable-bootstrap

To reproduce:

$ cd {build_dir}/gcc && make check 
RUNTESTFLAGS="old-deja.exp=g++.old-deja/g++.abi/cxa_vec.C --target_board='unix{-m64\ 
-march=cascadelake}'"

(Please do not reply to this email, for question about this report, contact me 
at skpgkp2 at gmail dot com)

The test is invalid, but worked until I changed <new> to stop
including <exception>.

This patch fixes it, pushed to master as obvious.


commit ce90d203cea33a4bfd4e415f601fe4486ecbb45d
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Wed Sep 2 18:37:17 2020

    testsuite: Add missing <exception> header to testcase
    
    This test no longer compiles because <new> stopped including
    <exception>, so std::set_terminate is not defined.
    
    gcc/testsuite/ChangeLog:
    
            * g++.old-deja/g++.abi/cxa_vec.C: Include <exception> for
            std::set_terminate.

diff --git a/gcc/testsuite/g++.old-deja/g++.abi/cxa_vec.C b/gcc/testsuite/g++.old-deja/g++.abi/cxa_vec.C
index d52637281fe..de647c4eb69 100644
--- a/gcc/testsuite/g++.old-deja/g++.abi/cxa_vec.C
+++ b/gcc/testsuite/g++.old-deja/g++.abi/cxa_vec.C
@@ -15,6 +15,7 @@
 #include <cxxabi.h>
 #include <stdio.h>
 #include <new>
+#include <exception>
 #include <stdlib.h>
 #include <setjmp.h>
 

Reply via email to