[Bug c/13741] [3.3/3.4/3.5 Regression] Variable-length arrays broke in gcc 3.x?

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Jan 19 15:49:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-19 15:49 -------
I just wish one of these extensions die.
Reduced to:
typedef struct tbl_s21_s
{
                char s21_nbr_demands;
                char s21_nbr_occur;
} tbl_s21_t;
int
decode_s23 (int tid, tbl_s21_t *s21)
{
  typedef struct demands_s
  {
                int dem_event_time[s21->s21_nbr_occur];

  } demands_t;
  typedef struct data_blk_s
  {
                demands_t db_demands [s21->s21_nbr_demands];
  } data_blk_t;
  void
  print_data_blk (data_blk_t *db)
  {
    demands_t *dem = &db->db_demands[0];
  }
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-19 15:49:30
               date|                            |
            Summary|Variable-length arrays broke|[3.3/3.4/3.5 Regression]
                   |in gcc 3.x?                 |Variable-length arrays broke
                   |                            |in gcc 3.x?
   Target Milestone|---                         |3.3.3


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



More information about the Gcc-bugs mailing list