#7264 closed Bugs (fixed)
xml_archive_exceptions - looser throw specifier of virtual destructors
Reported by: | Owned by: | Robert Ramey | |
---|---|---|---|
Milestone: | To Be Determined | Component: | exception |
Version: | Boost 1.51.0 | Severity: | Problem |
Keywords: | gcc 4.7.1 C++11 | Cc: |
Description
Several related virtual destructors for xml exceptions have looser throw specifications... base classes uses throw(), derived classes do not provide similar specification. See attachment.
Example.
qcc.compile.c++ D:\boostBuild_QCC_1_51_0\boost\bin.v2\libs\serialization\build\qcc\release\link-static\target-os-qnxnto\threadapi-pthread\threading-multi\xml_woarchive.o In file included from ./boost/archive/impl/basic_xml_oarchive.ipp:22:0,
from libs\serialization\src\xml_woarchive.cpp:22:
./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/basic_text_oprimitive.hpp:54:0,
from ./boost/archive/xml_woarchive.hpp:34, from libs\serialization\src\xml_woarchive.cpp:17:
./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.1/cc1plus caught signal 1
Attachments (1)
Change History (5)
by , 10 years ago
Attachment: | build_log.zip added |
---|
comment:1 by , 10 years ago
Owner: | changed from | to
---|
comment:2 by , 10 years ago
OK - looks legitimate. Looks like only Qcc compiler catches this - any idea why?
Robert Ramey
Robert, if I'm not mistaken this bug is for you.