This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: -fno-exceptions documentation
On Thu, Dec 08, 2005 at 03:29:14PM +0100, wrote:
> Paolo Carlini wrote:
>
> >Maybe I have a concern, however: I think people are also using libsupc++
> >*alone*, without the rest of the libstdc++ library, I'm not sure what we
> >should do in that case...
> >
> >
> ... probably, just having X<void>::__throw_bad_alloc in a libsupc++
> header would do...
>
> All in all, the whole approach seems not so different from
> __verbose_terminate_handler, already part of libsupc++ in namespace
> __gnu_cxx, only the "weak linkage" tricks are more delicate.
>
One thing I am concerned about is this program which, as far as I understand
it, should be buildable.
Note that I don't include any headers so there is nothing that defines the
throw function.
int main()
{
while(new char[1]);
return 0;
}
/MF