[PATCH, Fortran, pr79344, v1] [7 Regression] segmentation faults and run-time errors
Andre Vehreschild
vehre@gmx.de
Sat Feb 4 18:44:00 GMT 2017
Hi all,
attached patch fixes the issue of losing the data in the SOURCE= expression of
an ALLOCATE() when the source-expression is just a simple variable. The issue
was that internally a temporary variable was created, whose components were
freed afterwards. Now the components are only freed on temporary objects, i.e.,
when the source-expression is not an EXPR_VARIABLE, e.g. an EXPR_STRUCTURE or
EXPR_FUNCTION.
Bootstraps and regtests ok on x86_64-linux/f25. Ok for trunk?
Regards,
Andre
--
Andre Vehreschild * Email: vehre ad gmx dot de
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr79344_v1.clog
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20170204/f8a70a6b/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr79344_v1.patch
Type: text/x-patch
Size: 5537 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20170204/f8a70a6b/attachment.bin>
More information about the Fortran
mailing list