------- Comment #11 from pinskia at gcc dot gnu dot org  2005-10-14 01:30 
-------
Here is a testcase for FRE which can reproduced without -ftree-vrp -ftree-pre
at -O1:
struct f
{
  int i;
};
struct h{h();};
int g(void);
int g1(void) throw();
int h2222(f*);
void ghh(int);

int main(void)
{
  int i;
  f t;
  try
  {
    i = g1();
    try
    {
      i = g();
    }catch(...)
    {}
    int j = i;
    try
    {
      i = g();
    }catch(...)
    {}
    t.i = j;
    i = 2;
    int h = t.i;
    ghh (h);

    g();
  }catch(...)
  {}
  return i;
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24231

Reply via email to