------- Additional Comments From reichelt at gcc dot gnu dot org  2005-07-12 
13:40 -------
Confirmed. Reduced testcase:

===========================
char foo(unsigned n)
{
    char c[1][n];
    return c[0][0];
}
===========================

The ICE appeared with gcc 4.0.0.
The code compiles fine if one replaces unsigned with int, or char with int.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code, monitored
   Last reconfirmed|0000-00-00 00:00:00         |2005-07-12 13:40:31
               date|                            |
            Summary|ICE with unsigned char      |[4.0/4.1 regression] ICE
                   |array: size_binop, at fold- |with char array: size_binop,
                   |const.c:1637                |at fold-const.c:1637
   Target Milestone|---                         |4.0.2


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

Reply via email to