[Bug tree-optimization/24231] [4.1 Regression] SSA corruption with C++ code and exceptions and loads

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Oct 14 02:16:00 GMT 2005



------- Comment #13 from pinskia at gcc dot gnu dot org  2005-10-14 02:16 -------
Here is another testcase which is a related bug but is fixed easier by a check
for SSA_NAME_OCCURS_IN_ABNORMAL_PHI in try_look_through_load:
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
    { t.i = i;
      i = g();
    }catch(...)
   {}
    i = 2;
    int h = t.i;
    ghh (h);

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


-- 


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



More information about the Gcc-bugs mailing list