This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
throw ()
- To: gcc-bugs at gcc dot gnu dot org
- Subject: throw ()
- From: Mike Harrold <mharrold at cas dot org>
- Date: Wed, 30 Aug 2000 15:59:27 -0400 (EDT)
Hello,
This might be my misunderstanding of the standard, but I thought that:
void foo() throw ();
indicates that foo() throws no exceptions.
If that is the case, shouldn't the compiler warn about:
void foo() throw ()
{
throw "Oops!";
}
because at the moment it doesn't give any warning at all (gcc 2.95.2).
Or am I missing something?
Regards,
/Mike