This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/24231] [4.1 Regression] SSA corruption with C++ code and exceptions and loads
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Oct 2005 02:16:53 -0000
- Subject: [Bug tree-optimization/24231] [4.1 Regression] SSA corruption with C++ code and exceptions and loads
- References: <bug-24231-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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