[Patch, Fortran, 66035, v2] [5/6 Regression] gfortran ICE segfault

Andre Vehreschild vehre@gmx.de
Mon Jul 6 11:55:00 GMT 2015


Hi all,

please find attached the next version of the patch for pr66035 fixing an ICE.
Scope (copied from first submit):

An ICE occurred when in a structure constructor an allocatable component of
type class was initialized with an existing class object. This was caused by 

- the size of the memory to allocate for the component was miscalculated,
- the vptr was not set correctly, and
- when the class object to be used for init was allocatable already, it was
  copied wasting some memory instead of a view_convert inserted.

Bootstraps and regtests fine on x86_64-linux-gnu/f21.

Ok for trunk?

Regards,
	Andre
-- 
Andre Vehreschild * Email: vehre ad gmx dot de 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr66035_2.clog
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20150706/8b28d754/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr66035_2.patch
Type: text/x-patch
Size: 3051 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20150706/8b28d754/attachment.bin>


More information about the Fortran mailing list