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 Regression] [tree-ssa] Variable-length arrays broke in gcc 3.x


------- 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


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