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 c/13741] [3.3/3.4/3.5 Regression] Variable-length arrays broke in gcc 3.x?


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-01-23 20:46 -------
Here's an even shorter testcase (works in 2.95.x and tree-ssa, but crashes
everything else).

==============================
void foo(int i)
{
    typedef struct
    {
        char c[1][i];
    } A;

    void bar(A *a)
    {
        a->c[0];
    }
}
==============================


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
           Keywords|                            |monitored


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


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