This is the mail archive of the gcc-bugs@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]

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



------- 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


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