This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: May I propose an extension and ask how difficult this would be?
- To: "George T. Talbot" <george at moberg dot com>
- Subject: Re: May I propose an extension and ask how difficult this would be?
- From: Jason Merrill <jason at cygnus dot com>
- Date: 19 Nov 1999 18:31:47 -0800
- Cc: Mike Stump <mrs at windriver dot com>, gcc at gcc dot gnu dot org
- References: <199911192216.OAA26037@kankakee.wrs.com> <3835DE39.61A544C@moberg.com>
>>>>> George T Talbot <george@moberg.com> writes:
> I am, of course, assuming that the reason that the throw ( type )
> function/method qualifiers are already in the language is to perform
> this sort of analysis, and I could be wrong about that.
That was the general idea. g++ certainly could check that calls from a
function with a throw spec don't throw anything that would cause a call to
unexpected, but nobody has contributed the necessary code, and it's a low
priority.
FWIW, exception specifications are generally regarded in the committee as a
failed idea, and most people recommend that you not use them.
Jason