This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


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

G++ bug in Cygwin 1.1.1


This short program:

class Foo {};
int main() {
  try { throw Foo(); }
  catch (const Foo&) { return 0; }
}

compiled with the version of g++ 2.95.2 that comes with the current
net distribution, crashes when run:

$ ./foo.exe
0 [main] foo 1007 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
5052 [main] foo 1007 stackdump: Dumping stack trace to foo.exe.stackdump

This doesn't show up with the same compiler on Linux, suggesting that
this is either a Cygwin bug, or a g++ bug that only shows up on some
operating systems.

-- 
Ross Smith <ross.s@ihug.co.nz> The Internet Group, Auckland, New Zealand
========================================================================
   "So that's 2 T-1s and a newsfeed ... would you like clues with that?"
                                                       -- Peter Da Silva



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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