Re: [PATCH, Fortran, alloc_poly, v1] Fix allocation of memory for polymorphic assignment

2016-12-19 Thread Janus Weil
Hi Andre, > attached is a patch to fix the incorrect computation of memory needed in a > polymorphic assignment. Formerly the memory required could not be determined > and therefore one byte was allocated. This is fixed now, by retrieving the > size needed from the _vptr->size. > > Bootstraps and

[PATCH, Fortran, alloc_poly, v1] Fix allocation of memory for polymorphic assignment

2016-12-19 Thread Andre Vehreschild
Hi all, attached is a patch to fix the incorrect computation of memory needed in a polymorphic assignment. Formerly the memory required could not be determined and therefore one byte was allocated. This is fixed now, by retrieving the size needed from the _vptr->size. Bootstraps and regtests ok o