This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
c++ char exceptions
- From: "Robert Collins" <robert dot collins at itdomain dot com dot au>
- To: "Cygwin" <cygwin at sources dot redhat dot com>
- Date: Tue, 23 Apr 2002 17:44:57 +1000
- Subject: c++ char exceptions
I don't know if this is a cygwin issue or if I am doing something
fundamentally wrong...
int
main (int argc, char **argv)
{
try
{
throw "catch this";
}
catch (char *message)
{
return 1;
}
return 0;
}
coredumps on me. Throwing int's works fine. Throwing (string) "foo"
works fine.
Anyway, this is partly for the archives, partly for curiosity.
Rob
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/