https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85843

            Bug ID: 85843
           Summary: Invalide C++ in libstd++
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kargl at gcc dot gnu.org
  Target Milestone: ---

gmake[6]: Entering directory
'/safe/sgk/gcc/obj/x86_64-unknown-freebsd12.0/libstdc++-v3/src/c++11'
/bin/sh ../../libtool --tag CXX --tag disable-shared   --mode=compile
/safe/sgk/gcc/obj/./gcc/xgcc -shared-libgcc -B/safe/sgk/gcc/obj/./gcc
-nostdinc++ -L/safe/sgk/gcc/obj/x86_64-unknown-freebsd12.0/libstdc++-v3/src
-L/safe/sgk/gcc/obj/x86_64-unknown-freebsd12.0/libstdc++-v3/src/.libs
-L/safe/sgk/gcc/obj/x86_64-unknown-freebsd12.0/libstdc++-v3/libsupc++/.libs
-B/safe/sgk/work/x/x86_64-unknown-freebsd12.0/bin/
-B/safe/sgk/work/x/x86_64-unknown-freebsd12.0/lib/ -isystem
/safe/sgk/work/x/x86_64-unknown-freebsd12.0/include -isystem
/safe/sgk/work/x/x86_64-unknown-freebsd12.0/sys-include   -fno-checking
-I/safe/sgk/gcc/gcc/libstdc++-v3/../libgcc
-I/safe/sgk/gcc/obj/x86_64-unknown-freebsd12.0/libstdc++-v3/include/x86_64-unknown-freebsd12.0
-I/safe/sgk/gcc/obj/x86_64-unknown-freebsd12.0/libstdc++-v3/include
-I/safe/sgk/gcc/gcc/libstdc++-v3/libsupc++   -std=gnu++11 -prefer-pic
-D_GLIBCXX_SHARED -fno-implicit-templates  -Wall -Wextra -Wwrite-strings
-Wcast-qual -Wabi -Werror -fdiagnostics-show-location=once  
-ffunction-sections -fdata-sections  -frandom-seed=cow-stdexcept.lo -g -O2  -c
-o cow-stdexcept.lo ../../../../../gcc/libstdc++-v3/src/c++11/cow-stdexcept.cc
libtool: compile:  /safe/sgk/gcc/obj/./gcc/xgcc -shared-libgcc
-B/safe/sgk/gcc/obj/./gcc -nostdinc++
-L/safe/sgk/gcc/obj/x86_64-unknown-freebsd12.0/libstdc++-v3/src
-L/safe/sgk/gcc/obj/x86_64-unknown-freebsd12.0/libstdc++-v3/src/.libs
-L/safe/sgk/gcc/obj/x86_64-unknown-freebsd12.0/libstdc++-v3/libsupc++/.libs
-B/safe/sgk/work/x/x86_64-unknown-freebsd12.0/bin/
-B/safe/sgk/work/x/x86_64-unknown-freebsd12.0/lib/ -isystem
/safe/sgk/work/x/x86_64-unknown-freebsd12.0/include -isystem
/safe/sgk/work/x/x86_64-unknown-freebsd12.0/sys-include -fno-checking
-I/safe/sgk/gcc/gcc/libstdc++-v3/../libgcc
-I/safe/sgk/gcc/obj/x86_64-unknown-freebsd12.0/libstdc++-v3/include/x86_64-unknown-freebsd12.0
-I/safe/sgk/gcc/obj/x86_64-unknown-freebsd12.0/libstdc++-v3/include
-I/safe/sgk/gcc/gcc/libstdc++-v3/libsupc++ -std=gnu++11 -D_GLIBCXX_SHARED
-fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi -Werror
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections
-frandom-seed=cow-stdexcept.lo -g -O2 -c
../../../../../gcc/libstdc++-v3/src/c++11/cow-stdexcept.cc  -fPIC -DPIC
-D_GLIBCXX_SHARED -o cow-stdexcept.o
../../../../../gcc/libstdc++-v3/src/c++11/cow-stdexcept.cc: In copy constructor
'std::logic_error::logic_error(const std::logic_error&)':
../../../../../gcc/libstdc++-v3/src/c++11/cow-stdexcept.cc:58:3: error: base
class 'class std::exception' should be explicitly initialized in the copy
constructor
 [-Werror=extra]
   logic_error::logic_error(const logic_error& e) noexcept
   ^~~~~~~~~~~
../../../../../gcc/libstdc++-v3/src/c++11/cow-stdexcept.cc: In copy constructor
'std::runtime_error::runtime_error(const std::runtime_error&)':
../../../../../gcc/libstdc++-v3/src/c++11/cow-stdexcept.cc:64:3: error: base
class 'class std::exception' should be explicitly initialized in the copy
constructor [-Werror=extra]
   runtime_error::runtime_error(const runtime_error& e) noexcept
   ^~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
gmake[6]: *** [Makefile:562: cow-stdexcept.lo] Error 1
gmake[6]: Leaving directory
'/safe/sgk/gcc/obj/x86_64-unknown-freebsd12.0/libstdc++-v3/src/c++11'
Making all in filesystem
gmake[6]: Entering directory
'/safe/sgk/gcc/obj/x86_64-unknown-freebsd12.0/libstdc++-v3/src/filesystem'

Reply via email to