https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83776

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
      Known to work|                            |4.5.4
            Summary|missing -Warray-bounds      |[5/6/7/8 Regression]
                   |indexing past the end of a  |missing -Warray-bounds
                   |string literal              |indexing past the end of a
                   |                            |string literal
      Known to fail|                            |4.6.4, 4.7.4, 4.8.4, 4.9.4,
                   |                            |5.5.0, 6.4.0, 7.2.0, 8.0

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
It turns out that GCC 4.5 was able to diagnose all three instances but that
ability was lost with r164688 so this is a regression, albeit an ancient one.

r164688 | hubicka | 2010-09-28 12:28:39 -0400 (Tue, 28 Sep 2010) | 5 lines

        * tree-ssa-ccp.c (fold_ctor_reference): New function.
        (fold_const_aggregate_ref): Use it.
        * fold-const.c (canonicalize_constructor_val): Check that we don't fold
        into external static.

Reply via email to