PR middle-end/91584 - Bogus warning from -Warray-bounds during string assignment
authorMartin Sebor <msebor@redhat.com>
Fri, 30 Aug 2019 17:42:57 +0000 (17:42 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Fri, 30 Aug 2019 17:42:57 +0000 (11:42 -0600)
commit5d69df7e9292522d00100b79f84a982359ed8142
treea657da3d6c4925872955670e1b22d00b7f31c902
parent7259a9d577b05735ccbb8bf808d14a702bf6d8c2
PR middle-end/91584 - Bogus warning from -Warray-bounds during string assignment

gcc/ChangeLog:

PR middle-end/91584
* tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
before using them to validate MEM_REF offset.

gcc/testsuite/ChangeLog:
* gfortran.dg/char_array_constructor_4.f90: New test.

From-SVN: r275210
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/char_array_constructor_4.f90 [new file with mode: 0644]
gcc/tree-vrp.c