[Patch, fortran] PR52162 - Bogus -fcheck=bounds with realloc on assignment to unallocated LHS

Paul Richard Thomas paul.richard.thomas@gmail.com
Thu Jan 11 17:26:00 GMT 2018


Ping!

On 8 January 2018 at 14:36, Paul Richard Thomas
<paul.richard.thomas@gmail.com> wrote:
> I post this patch early last year and did not submit because I was up
> to my eyeballs with PR34640. I just forgot about it until it came up
> on clf a few days ago.
>
> Bootstraps and regtests on FC23/x86_64 - OK for trunk?
>
> Paul
>
> 2018-01-08  Paul Thomas  <pault@gcc.gnu.org>
>
>     PR fortran/52162
>     * trans-expr.c (gfc_trans_scalar_assign): Flag is_alloc_lhs if
>     the rhs expression is neither an elemental nor a conversion
>     function.
>
> 2018-01-08  Paul Thomas  <pault@gcc.gnu.org>
>
>     PR fortran/52162
>     * gfortran.dg/bounds_check_19.f90 : New test.



-- 
"If you can't explain it simply, you don't understand it well enough"
- Albert Einstein



More information about the Gcc-patches mailing list