libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool, llvm-gcc, failing C++ exceptions


From: Ralf Wildenhues
Subject: Re: libtool, llvm-gcc, failing C++ exceptions
Date: Tue, 12 Jan 2010 07:18:00 +0100
User-agent: Mutt/1.5.20 (2009-10-28)

Hi Charles,

* Charles Wilson wrote on Tue, Jan 12, 2010 at 12:42:21AM CET:
> Ralf Wildenhues wrote:
> > Yup, indeed.  And we need to provide a throw()-qualified destructor as
> > well.
> 
> A word of warning: not all implementations of std::exception use the
> 'throw' specifier on the virtual what() method. So, if you add it on
> your derived class but the base class doesn't have it, you may get
> [errors|warnings|pain].
> 
> Not sure what to do about it, short of adding a configure test...

The test is currently skipped if the compiler doesn't like main.cpp
(which already exposes this API), so we should be safe there but not
test on as many systems as we could.  I added that for those kinds of
issues, but primarily for the older, pre-standard C++ compilers that
don't grok namespaces etc.

A missing throw() on virtual what() is a violation of ISO C++98 however.

Cheers,
Ralf





reply via email to

[Prev in Thread] Current Thread [Next in Thread]