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 Regression] [tree-ssa] Variable-length arrays broke in gcc 3.x
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 May 2004 20:48:03 -0000
- Subject: [Bug c/13741] [3.3/3.4 Regression] [tree-ssa] 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 pinskia at gcc dot gnu dot org 2004-05-06 20:48 -------
Note I have a fixed for the last testcase for the tree-ssa but the tree-ssa still ICE's.
Here is a simple testcase for that ICE:
void
decode_s23 (int s21_nbr_demands)
{
typedef struct b_t
{
int db_demands [s21_nbr_demands];
int db_coincidents;
} b_t;
typedef struct a_t
{
b_t db_demands [s21_nbr_demands];
int db_coincidents;
} a_t;
typedef struct data_blk_s
{
a_t db_demands [s21_nbr_demands];
int db_coincidents;
} data_blk_t;
void
print_data_blk (data_blk_t *db, int i)
{
int *a = &db->db_demands[i].db_demands[i].db_demands[i];
db->db_coincidents = 0;
}
data_blk_t s23;
print_data_blk(&s23, 40);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13741