This patch fixes PR96312. Cures a used uninitialized warning.
authorPaul Thomas <pault@gcc.gnu.org>
Mon, 10 Aug 2020 05:22:22 +0000 (06:22 +0100)
committerPaul Thomas <pault@gcc.gnu.org>
Mon, 10 Aug 2020 05:22:22 +0000 (06:22 +0100)
commitabb276d0eca218e62e5ed50babf12ff544250759
treeaf0a598439e7af193f0b3af7cf7e8bdb4766e8a0
parent359815ad136ee6ad142fb54470ce79609e43ff5d
This patch fixes PR96312. Cures a used uninitialized warning.

2020-08-10  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/96312
* trans-expr.c (fcncall_realloc_result): Only compare shapes if
lhs was allocated..

gcc/testsuite/
PR fortran/96312
* gfortran.dg/pr96312.f90: New test.
gcc/fortran/trans-expr.c
gcc/testsuite/gfortran.dg/pr96312.f90 [new file with mode: 0644]