C++ crash with -fno-exceptions

Phil Edwards pedwards@disaster.jaj.com
Wed Dec 20 10:58:00 GMT 2000

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... []/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.

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 think we'd be looking at Yet Another
Multilib Configuration.

pedwards at disaster dot jaj dot com  |  pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools.  Fools are protected by more capable fools.

More information about the Gcc-bugs mailing list