https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84050
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Known to work| |4.5.4 See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=83776 Summary|missing -Warray-bounds |[6/7/8 Regression] missing |accessing a struct array |-Warray-bounds accessing a |member |struct array member 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> --- Same as in bug 83776, bisection points to r164688 committed into GCC 4.6 as the root cause of the regression: 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.