]> gcc.gnu.org Git - gcc.git/commit
Fix failures with -m32 and some memory leaks.
authorPaul Thomas <pault@gcc.gnu.org>
Sat, 26 Dec 2020 15:08:11 +0000 (15:08 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Thu, 7 Jan 2021 11:20:50 +0000 (11:20 +0000)
commitfc46d988ab1c496acc7e082286e21998a992df42
tree795561780fdf27b67bd295bf7d0b0a932e056ae4
parent10dde773d2d6866cbca3f7323a64130339e36007
Fix failures with -m32 and some memory leaks.

2020-12-23  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/83118
* trans-array.c (gfc_alloc_allocatable_for_assignment): Make
sure that class expressions are captured for dummy arguments by
use of gfc_get_class_from_gfc_expr otherwise the wrong vptr is
used.
* trans-expr.c (gfc_get_class_from_gfc_expr): New function.
(gfc_get_class_from_expr): If a constant expression is
encountered, return NULL_TREE;
(gfc_trans_assignment_1): Deallocate rhs allocatable components
after passing derived type function results to class lhs.
* trans.h : Add prototype for gfc_get_class_from_gfc_expr.
gcc/fortran/trans-array.c
gcc/fortran/trans-expr.c
gcc/fortran/trans.h
This page took 0.057717 seconds and 6 git commands to generate.