Opened 14 years ago

Closed 10 years ago

#2099 closed Bugs (wontfix)

test fails to compile with -fno-exceptions

Reported by: brbarret@… Owned by: Gennadiy Rozental
Milestone: Boost 1.36.0 Component: test
Version: Boost 1.35.0 Severity: Problem
Keywords: Cc:

Description

The test component fails to compile with GCC when -fno-exceptions is specified. The attached patch allows the libraries / tests shipped with boost 1.35.0 to compile. There didn't seem to be a way to keep g++ happy about some of the catch blocks (I'm not enough of a C++ expert to figure out the pattern in which it did and did not lick). The catch blocks disliked by my version of g++ (the 4.0.1 shipped with OS X 10.5) are protected with #ifndefs in the patch.

Attachments (1)

boost_test_no_exceptions.diff (16.8 KB ) - added by anonymous 14 years ago.

Download all attachments as: .zip

Change History (3)

by anonymous, 14 years ago

comment:1 by Gennadiy Rozental, 13 years ago

Why do we need to inherit from std::exception?

comment:2 by Gennadiy Rozental, 10 years ago

Resolution: wontfix
Status: newclosed

If this is still outstanding please submit new ticket and patch with explanations

Note: See TracTickets for help on using tickets.