This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] Another EH cfg cleanup PATCH


On Thu, 22 May 2003 16:16:44 -0600, law@redhat.com wrote:

> Odd.  I thought I had the code to reach from one cleanup to the
> next.  Very odd.

Where?  I don't see anything that looks like it's trying to handle this.

> Do you have some sample code handy?  I'm more than happy to poke at it.

int c;

struct A
{
  A() { ++c; }
  A(const A&) { ++c; }
  ~A() { --c; }
};

struct B
{
  A a;
  B() { A a; throw 1; }
};

int main()
{
  try
    {
      B b;
    }
  catch (...) {}
  return c;
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]