[Patch, fortran] PR33554 - [4.3 regression] Seg.fault: Default initialization of derived type uses uninitialized values
Paul Richard Thomas
paul.richard.thomas@gmail.com
Mon Oct 1 11:57:00 GMT 2007
:ADDPATCH fortran:
This regression came about when I rejigged the handling of default
initialization of derived types with intent(out). The block of code
doing the initilization was placed too early and so pre-empted the
calculation of dummy array offsets and lower bounds. This triggered
the segfault. The solution is to move this code to its own function
and to add the translated block to the top of the function body, just
before any deferred trickery is done to the function result. The code
for deferred arrays is then added on top of that. The testcase is the
reporter's with a bit of dejagnuification.
Regtested on cygwin_nt/PIV (will bootstrap and regtest tonight on
x86_ia64) - OK for trunk?
Paul
--
The knack of flying is learning how to throw yourself at the ground and miss.
--Hitchhikers Guide to the Galaxy
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Change.Logs
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20071001/44a2dce8/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: submit.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20071001/44a2dce8/attachment-0001.ksh>
More information about the Fortran
mailing list