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 01:30:47 -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 #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