------- Comment #1 from pinskia at gcc dot gnu dot org  2009-12-30 19:47 -------
The front-end already changed it into being = {};, a[0] = ...
  <<cleanup_point   int v[4] = {};>>;
  <<cleanup_point <<< Unknown tree: expr_stmt
  <<< Unknown tree: expr_stmt
  v[0] = a >>>
;
  <<< Unknown tree: expr_stmt
  v[1] = b >>>
;
  <<< Unknown tree: expr_stmt
  v[2] = c >>>
;
  <<< Unknown tree: expr_stmt
  v[3] = d >>>
; >>>
>>;

I thought there was a duplicate of this bug somewhere.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |missed-optimization
   Last reconfirmed|0000-00-00 00:00:00         |2009-12-30 19:47:23
               date|                            |
            Summary|Unnecessary generation of a |Unnecessary generation of a
                   |zero initializer for array  |zero initializer for array
                   |with C++                    |with C++


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

Reply via email to