delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/03/13/22:57:13

From: pa AT softsystem DOT com DOT pl (Piotr Andzel)
Subject: try-throw-catch possible bug in B19 ?
13 Mar 1998 22:57:13 -0800 :
Message-ID: <199803130748.IAA40590.cygnus.gnu-win32@waw.softsystem.com.pl>
Mime-Version: 1.0
To: <gnu-win32 AT cygnus DOT com>

Hi Guys.

Try to compile following example:

#include <iostream.h>

int main()
{
   try
   {
      throw "Error";
   }
   catch(const char* s)
   {
      cout << s << endl;
   }
   return 0;
}

Using B18 or some other compilers gives expected result - "Error" text
on the screen, but compiled by B19 gives no any effect.

Is this a bug or missed any option during compilation ?
Using -fexceptions makes no any difference.

Regards.

Piotr Andzel
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019