This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/17902] [4.0 Regression] ICE from tree_verify_flow_info
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Oct 2004 22:52:40 -0000
- Subject: [Bug tree-optimization/17902] [4.0 Regression] ICE from tree_verify_flow_info
- References: <20041008215450.17902.snyder@fnal.gov>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-10-08 22:52 -------
Here's something shorter. Maybe related to PR 17766 which is also
triggered by -funswitch-loops.
==============================================
void foo();
struct A { ~A(){ foo(); } };
struct B { A a; };
void bar()
{
A a;
bool b = false;
int i, j;
for (j=0; j<i; j++)
{
if (i) b=true;
if (j && i) foo();
if (j && i) i++;
}
for (j=0; j<i; j++)
if ( !j || (j==1 && b && i) )
B x;
}
==============================================
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17902