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 middle-end/18005] [4.0 Regression] ICE with simple loop


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-10-16 15:37 -------
Here's an even shorter example. Just compile with "-O".

============================================
const int n = 2;

void foo()
{
    int a[1][n], i;

    for (i=0; i<2; ++i)
        if (a[0][i]) return;
}
============================================

Sebastian, the problem appeared with your patch
http://gcc.gnu.org/ml/gcc-cvs/2004-10/msg00852.html

Could you please have a look?


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
  GCC build triplet|x86_64-linux-gnu            |
   GCC host triplet|x86_64-linux-gnu            |
 GCC target triplet|x86_64-linux-gnu            |
           Keywords|                            |monitored
            Summary|[4.0 Regression] ICE in     |[4.0 Regression] ICE with
                   |fold-const.c/fold           |simple loop


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18005


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