This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch, fortran] PR33554 - [4.3 regression] Seg.fault: Default initialization of derived type uses uninitialized values


: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

Attachment: Change.Logs
Description: Text document

Attachment: submit.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]