This is the mail archive of the gcc-bugs@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 ()


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

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