[Fortran, patch] PR32323 - give error for vector subscript actual arguments to intent out/inout

Tobias Burnus burnus@net-b.de
Wed Jun 13 19:37:00 GMT 2007


:ADDPATCH fortran:

"12.4.1.2 Actual arguments associated with dummy data objects"
"If a nonpointer dummy argument has INTENT (OUT) or INTENT (INOUT), the actual
argument shall be definable."
"If the actual argument is an array section having a vector subscript, the
dummy argument is not definable and shall not have the INTENT (OUT), INTENT
(INOUT), VOLATILE, or ASYNCHRONOUS attributes."


Build and regression tested on x86_64-unknown-linux-gnu.

Ok for the trunk?
(Anyone wants to see this for the branch? I don't.)


Tobias

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vector_subscript.diff
Type: text/x-patch
Size: 3013 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070613/7ce92339/attachment.bin>


More information about the Gcc-patches mailing list