EH broken in HPPA egcs-1.0?

Neal Becker neal@ctd.comsat.com
Wed Dec 10 13:16:00 GMT 1997


I tried a trivial test program using EH (one of the dejagnu g++ tests) 
on hppa1.1-hpux9.05 egcs-1.0 and it segfaults:

extern "C" void puts(const char *);

class foo {
public:
  class error {};

  void cause_error(void) { throw error(); }
};

int main(void)
{
  foo f;
  try {
    f.cause_error();
  }
  catch (foo::error) {
    puts("Caught it.");
  }
  return 0;
}



More information about the Gcc mailing list