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

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Sebor <mse...@gcc.gnu.org>:

https://gcc.gnu.org/g:b76f83e3859f738809d3aa8bd9dc14e10fc40e24

commit r11-5628-gb76f83e3859f738809d3aa8bd9dc14e10fc40e24
Author: Martin Sebor <mse...@redhat.com>
Date:   Tue Dec 1 15:10:30 2020 -0700

    PR middle-end/97595 - bogus -Wstringop-overflow due to DECL_SIZE_UNIT
underreporting field size

    gcc/ChangeLog:

            PR middle-end/97595
            * tree.c (component_ref_size): Fail when DECL_SIZE != TYPE_SIZE.
            * tree.h (DECL_SIZE, TYPE_SIZE): Update comment.

    gcc/testsuite/ChangeLog:

            PR middle-end/97595
            * g++.dg/warn/Warray-bounds-14.C: New test.
            * g++.dg/warn/Wstringop-overflow-6.C: New test.

Reply via email to