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

Jerry DeLisle jvdelisle@verizon.net
Sun Jan 13 21:54:00 GMT 2008


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



More information about the Gcc-patches mailing list