This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/13741] [3.3/3.4/3.5 Regression] Variable-length arrays broke in gcc 3.x?
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jan 2004 20:46:52 -0000
- Subject: [Bug c/13741] [3.3/3.4/3.5 Regression] Variable-length arrays broke in gcc 3.x?
- References: <20040119151417.13741.dmarkuson@arrayinc.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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