This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: target/2723: [HPPA/HPUX] exception handling
- From: rodrigc at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jle at star dot be, nobody at gcc dot gnu dot org
- Date: 27 Feb 2002 17:00:33 -0000
- Subject: Re: target/2723: [HPPA/HPUX] exception handling
- Reply-to: rodrigc at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jle at star dot be, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: [HPPA/HPUX] exception handling
State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Wed Feb 27 09:00:31 2002
State-Changed-Why:
The example is ill-formed.
This is the corrected example:
class Ex
{
public:
Ex ()
{
}
};
int
main (int argc, char *argv[])
{
try
{
throw Ex ();
return 1;
}
catch (const Ex & e)
{
return 0;
}
catch (...)
{
return 1;
}
return 1;
}
This works with gcc 3.0.4 under current HP-UX.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=2723