[Boost-bugs] [Boost C++ Libraries] #7642: archive::archive_exception fails to build when using C++11 with gcc 4.7.2

Subject: [Boost-bugs] [Boost C++ Libraries] #7642: archive::archive_exception fails to build when using C++11 with gcc 4.7.2
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-11-06 00:19:12


#7642: archive::archive_exception fails to build when using C++11 with gcc 4.7.2
-------------------------------------------------------+--------------------
 Reporter: steven.lemay@… | Owner: ramey
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
  Version: Boost 1.52.0 | Severity: Problem
 Keywords: archive exception failed throw destructor |
-------------------------------------------------------+--------------------
 The destructors no throw specifier 'throw ()' appears not be be inherited
 properly for some classes derived from archive::archive_exception. A
 temporary workaround was to remove the 'throw ()' specification for gcc
 4.7.2 compilation.

 Build log output.

     "QCC" -Wc,-ftemplate-depth-128 -DFD_SETSIZE=2048 -march=k8-sse3
 -mtune=k8-sse3 -mmmx -msse3 -mfpmath=sse -mno-3dnow -mstackrealign -Y_cpp
 -Wc,-fPIC,-fnothrow-opt,-std=c++11,-std=gnu++11 -O3 -Wc,-finline-functions
 -Wc,-Wno-inline -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I"." -c -o
 "D:\boostBuild_QCC_1_52_0\boost\bin.v2\libs\serialization\build\qcc\release
 \link-static\target-os-qnxnto\threadapi-pthread\threading-
 multi\xml_iarchive.o" "libs\serialization\src\xml_iarchive.cpp"

 ...failed qcc.compile.c++
 D:\boostBuild_QCC_1_52_0\boost\bin.v2\libs\serialization\build\qcc\release
 \link-static\target-os-qnxnto\threadapi-pthread\threading-
 multi\xml_iarchive.o...
 qcc.compile.c++
 D:\boostBuild_QCC_1_52_0\boost\bin.v2\libs\serialization\build\qcc\release
 \link-static\target-os-qnxnto\threadapi-pthread\threading-
 multi\xml_archive_exception.o
 In file included from
 libs\serialization\src\xml_archive_exception.cpp:21:0:
 ./boost/archive/xml_archive_exception.hpp:35:44: error: looser throw
 specifier for 'virtual
 boost::archive::xml_archive_exception::~xml_archive_exception()'
 In file included from ./boost/archive/xml_archive_exception.hpp:25:0,
                  from libs\serialization\src\xml_archive_exception.cpp:21:
 ./boost/archive/archive_exception.hpp:86:5: error: overriding 'virtual
 boost::archive::archive_exception::~archive_exception() throw ()'
 cc: d:/qnxsdk/qnxsdk6.5-001/host/win32/x86/usr/lib/gcc/i486-pc-nto-
 qnx6.5.0/4.7.2/cc1plus caught signal 1

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7642>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC