https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91556

--- Comment #26 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Mon, Sep 09, 2019 at 11:21:05AM +0000, mario-baumann at web dot de wrote:
> 
> --- Comment #25 from Mario Baumann <mario-baumann at web dot de> ---
> 
> the following fortran code (without module/interface statements)
> 
>       SUBROUTINE FOO (A)
>       IMPLICIT NONE
>       DOUBLE PRECISION :: A(2)
>       DOUBLE PRECISION :: B(2)
>       CALL GOO (A(1))
>       CALL GOO (B)
>       END
> 
> returns a similar error:
> 
> > /Gcc/10.0.0/bin/gfortran -c foo.F
> foo.F:6:16:
> 
>     6 |       CALL GOO (B)
>       |                1
> Error: Rank mismatch in argument '_formal_0' at (1) (scalar and rank-1)
> 

You can use the -fallow-argument-mismatch option to
degrade the error to warning.  You'll continue to 
get a warning until you fix the code.

Reply via email to