Article View: gnu.gcc.bug
Article #6254(none)
From: Mike Stump
Date: Wed, 27 Dec 1995 00:00
Date: Wed, 27 Dec 1995 00:00
39 lines
1661 bytes
1661 bytes
Path: cygnus.com!news.zeitgeist.net!bdt.com!miwok!news.wco.com!imci2!newsfeed.internetmci.com!in2.uu.net!mr.net!news.mr.net!dawn.mmm.com!news
From: kjhopps@mmm.com (Kevin J Hopps)
Newsgroups: gnu.g++.help
Subject: 2.7.2 exceptions?
Date: 27 Dec 1995 20:12:54 GMT
Organization: 3M - St. Paul, MN 55144-1000 US
Lines: 26
Message-ID: <4bs9c6$pk5@dawn.mmm.com>
Reply-To: kjhopps@mmm.com
X-Newsreader: TIN [version 1.2 PL2]
I got g++ 2.7.2 running on hpux 9.05 but the exception stuff doesn't
seem to work right. For example, the following program prints
hello, world
should never get here
I compiled it with -fhandle-exceptions. Did I do something wrong?
--
#include <iostream.h>
int main()
{
try {
cout << "hello, world\n";
throw 5;
cout << "should never get here\n";
} catch (int x) {
cout << "caught " << x << '\n';
}
return 0;
}
--
Kevin J. Hopps e-mail: kjhopps@mmm.com
3M Company phone: (612) 737-4643
3M Center, Bldg. 235-2D-57 fax: (612) 737-2700
St. Paul, MN 55144-1000 Opinions are my own. I don't speak for 3M.
But 3M speaks for me -- I did not write the following line:
Opinions expressed herein are my own and may not represent those of 3M.
Technical Details
Message-ID:
<199512272258.OAA03000@rtl.cygnus.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,29b5692b6a95d3b6 X-Google-Attributes: gid113d02,public From: mrs@cygnus.com (Mike Stump) Subject: (none) Date: 1995/12/27 Message-ID: <199512272258.OAA03000@rtl.cygnus.com> X-Deja-AN: 122960376 distribution: gnu sender: daemon@cis.ohio-state.edu organization: GNUs Not Usenet newsgroups: gnu.gcc.bug