[patches,fortran] Add POINTER INTENT(*) support (PR29624)
Tobias Burnus
burnus@net-b.de
Tue Dec 12 14:00:00 GMT 2006
:ADDPATCH fortran:
The standard can be found at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29624#c0
In a nutshell: With intent(in) the pointer dummy argument's association
shall not be changed, the target may.
Thanks to Tobias S. for pointing out that I was looking at the wrong
thing in terms of attributes.
Quick remark to compound structures:
- If the last subobject is a pointer & its association is changed, I
check whether somewhere higher up in the hierarchy is already a pointer,
because then the subobject is a target of that one. => Modification allowed.
- If the last subobject is a pointer & its value target value is changed
=> Modification always allowed
- If the last subobject is a nonpointer: Check whether somewhere higher
up in the hierarchy is already a pointer, because then the subobject is
a target of that one. => Modification allowed.
Regression tested on x86_64-unknown-linux-gnu.
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pointer-intent.diff
Type: text/x-patch
Size: 21996 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20061212/f0dae064/attachment.bin>
More information about the Fortran
mailing list