Warnings for unhandled c++ exceptions?

Alexandre Oliva aoliva@redhat.com
Mon Feb 3 18:13:00 GMT 2003


On Feb  3, 2003, "Wesley W. Terpstra" <terpstra@ito.tu-darmstadt.de> wrote:

> I suggested an optional flag to be used for compiler-assisted bug-tracking
> and quality code writing. (refer to the earlier portion of the message)

/me thinks such a warning would be mostly useless

I actually find this sad, but if you consider that most of the C++
code out there, as well as the C library whose declarations are
brought into C++, have no throw() declarations at all, you'd quickly
drown into warning due to calling methods that could throw anything
but that in reality don't, and it would be very difficult to tell what
warnings are actually significant.

> I presume someone else has already requested this functionality?

Yup.  Searching the mailing list will, with some luck for picking the
right search terms, find a number of similar requests.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer



More information about the Gcc mailing list