[Patch, Fortran, 66035, v1] [5/6 Regression] gfortran ICE segfault
Andre Vehreschild
vehre@gmx.de
Fri May 8 13:29:00 GMT 2015
Hi all,
please find attached a patch for 66035. 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.
All of the above are fixed by the attached patch.
Bootstraps and regtests ok on x86_64-linux-gnu/f21 for trunk and gcc-5-trunk.
Ok for trunk and gcc-5-trunk?
Regards,
Andre
--
Andre Vehreschild * Email: vehre ad gmx dot de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr66035_1.clog
Type: application/octet-stream
Size: 649 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150508/90cad03d/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr66035_1.patch
Type: text/x-patch
Size: 3187 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150508/90cad03d/attachment.bin>
More information about the Gcc-patches
mailing list