[Bug c++/52954] Missing bounds check warning without optimization

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Apr 13 09:52:00 GMT 2012


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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-04-13
            Summary|Missing bounds check        |Missing bounds check
                   |warning                     |warning without
                   |                            |optimization
     Ever Confirmed|0                           |1

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-04-13 09:51:38 UTC ---
We only perform array-bounds warnings when we optimize and the VRP pass is
turned on.  We completely miss this kind of warning in the frontend(s),
though they for sure can only detect very simple cases.



More information about the Gcc-bugs mailing list