This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Warnings for unhandled c++ exceptions?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]