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]

Re: [Patch, Fortran] PR34665: Fix array actual/dummy conformance checks


Tobias Burnus wrote:
The following patch does:

- Reject passing an element of an assumed-shaped array to an array dummy

- Reject expressions as actual arguments, which involve assume-shaped
arrays (unknown upper bound; for assignment etc. it was rejected before).

- Do some other fixes; at least the "Fortran 2003" warning for passing
character strings to arrays was partially wrong before; valid F95 was
claimed as being F2003 only and invalid F95 was accepted with -std=f95.

- The error message are now a preciser instead of previous "Type/Rank
mismatch"

See 12.4.1.1 in F95 and 12.4.1.2 in F2003 (beginning of that section and
about one page later in "If the actual argument is scalar").

Build and regression tested on x86-64-linux.
OK for the trunk?

Tobias

OK, impressive test cases.

Jerry


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