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/17902] [4.0 Regression] ICE from tree_verify_flow_info


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


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