c++ char exceptions

Michael D. Crawford crawford@goingware.com
Tue Apr 23 01:22:00 GMT 2002

It aborts with g++ 2.95.4 on Debian PowerPC Linux too.

But if I compile it with CodeWarrior 6 on Windows it runs normally, doesn't 
crash, and gives the exit code of 1.

I think CodeWarrior is correct, and that this is a bug in g++, but not in cygwin.


Thus it was written:
I don't know if this is a cygwin issue or if I am doing something
fundamentally wrong...

main (int argc, char **argv)
       throw "catch this";
   catch (char *message)
       return 1;
   return 0;

coredumps on me. Throwing int's works fine. Throwing (string) "foo"
works fine.

Michael D. Crawford
GoingWare Inc. - Expert Software Development and Consulting

     Tilting at Windmills for a Better Tomorrow.

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/

More information about the Cygwin mailing list