------- Comment #2 from pinskia at gcc dot gnu dot org  2006-04-30 07:47 -------
(In reply to comment #0)
[first testcase using nonconstant index]
> 
> does not warn about the use of uninitialized array buffer.  While
> 
[second testcase using constant index]
> 
> does.  Likewise for C++.

In the second example, SRA works on the array, scalarizes the array which
allows for the current initialization warning to happen.  Now maybe we should
do the uninitialization  warning in the front-end.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-04-30 07:47:20
               date|                            |


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

Reply via email to