PR fortran/78758
commit30a04590e24ee70915dec0bfa6088b07ce898cd9
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 10 Dec 2016 08:02:21 +0000 (10 08:02 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 10 Dec 2016 08:02:21 +0000 (10 08:02 +0000)
treeed5bebc41f71dbb9725b566add5765cfd89508a5
parent99dde1f18864fe3e77dbdcf4833108092b10371b
PR fortran/78758
* tree-object-size.c (compute_object_offset) <case ARRAY_REF>: Handle
non-zero low bound or non-standard element sizes.

* gfortran.dg/pr78758.f90: New test.
* gfortran.dg/pr38868.f: Remove again bogus warning.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@243515 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr38868.f
gcc/testsuite/gfortran.dg/pr78758.f90 [new file with mode: 0644]
gcc/tree-object-size.c