Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#7264 closed Bugs (fixed)

xml_archive_exceptions - looser throw specifier of virtual destructors

Reported by: steve.lemay@… 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)

build_log.zip (100.8 KB ) - added by steve.lemay@… 10 years ago.

Download all attachments as: .zip

Change History (5)

by steve.lemay@…, 10 years ago

Attachment: build_log.zip added

comment:1 by Emil Dotchevski, 10 years ago

Owner: changed from Emil Dotchevski to Robert Ramey

Robert, if I'm not mistaken this bug is for you.

comment:2 by Robert Ramey, 10 years ago

OK - looks legitimate. Looks like only Qcc compiler catches this - any idea why?

Robert Ramey

comment:3 by Robert Ramey, 10 years ago

Resolution: fixed
Status: newclosed

fixed

comment:4 by anonymous, 8 years ago

how did you fixed?

Note: See TracTickets for help on using tickets.