target/2723: [HPPA/HPUX] exception handling

rodrigc@gcc.gnu.org rodrigc@gcc.gnu.org
Wed Feb 27 18:51:00 GMT 2002


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



More information about the Gcc-bugs mailing list