C++ crash with -fno-exceptions

Gabriel Dos Reis gdr@codesourcery.com
Wed Dec 20 11:05:00 GMT 2000


Phil Edwards <pedwards@disaster.jaj.com> writes:

| On Wed, Dec 20, 2000 at 07:13:54PM +0100, Gabriel Dos Reis wrote:
| > Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> writes:
| > 
| > | [1  <text/plain; US-ASCII (7bit)>]
| > | If I disable exception handling with -fno-exceptions
| > 
| > This is a real question: Is the standard library supposed to work
| > with -fno-exceptions? 
| 
| Well... [17.4.4.8]/1 starts with
| 
| # Any of the functions defined in the C++ Standard Library can report a
| # failure by throwing an exception of the type(s) described in their Throws:
| # paragraph and/or their exception-specification.

I see.  Thanks.

| so I think if 3.0 ships with a library that requires exception handling,
| we would be okay.  Still, it would be nice if we could build a library
| that worked with -fno-exceptions.  

I understand -- but personnally, that is not a priority issue for me.

| ... I think we'd be looking at Yet Another
| Multilib Configuration.

Good luck :-)

-- Gaby
CodeSourcery, LLC                       http://www.codesourcery.com


More information about the Gcc-bugs mailing list