[Bug tree-optimization/17902] [4.0 Regression] ICE from tree_verify_flow_info

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Oct 8 22:52:00 GMT 2004


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



More information about the Gcc-bugs mailing list