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]

throw lists and warnings



Who else thinks throw lists are useless? ANSI seem to think so. The
standard library is defined to throw exceptions under certain
circumstances but the methods do not have these exceptions stated in a
throw list.

I would like to see throw lists used more but we all know why they are
not. It is because the penalty for making a mistake is DEATH. And no-one
wants to die. I propose that the GNU compiler has a command line option
that enables warnings when throw lists are violated.

Once the GNU compiler supports this it might be possible to get ANSI to
put throw lists in the official method descriptions for methods that are
defined to throw exceptions under certain conditions.

Thoughts, anyone?

-Andrew Marlow.



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