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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Blocks|                            |56456
            Summary|missing -Warray-bounds      |[8/9/10 Regression] missing
                   |writing to an empty         |-Warray-bounds writing to
                   |flexible array member in a  |an empty flexible array
                   |ctor                        |member in a ctor

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
GCC 5 diagnoses both: https://gcc.godbolt.org/z/dW2U6d.  Neither Clang nor GCC
diagnoses either.

The regression was introduced in r158058 committed to fix PR
tree-optimization/43270.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456
[Bug 56456] [meta-bug] bogus/missing -Warray-bounds

Reply via email to