[Patch, Fortran] PR55134 - Fix ASSOCIATE handling of arrays

Tobias Burnus burnus@net-b.de
Wed Oct 31 16:42:00 GMT 2012


With "ASSOCIATE (A => array)", one generates internally "A" as 
AS_DEFERRED array. However, it is neither a pointer nor allocatable, 
unless "array" is.

When passing "A" as actual argument to a non-descriptor dummy, 
trans-array.c assumed that the actual argument had no descriptor, which 
lead to wrong code.

Build and regtested on x86-64-gnu-linux.
OK for the trunk?

Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: associate-fix.diff
Type: text/x-patch
Size: 1420 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20121031/c5948536/attachment.bin>


More information about the Fortran mailing list