[Bug fortran/84922] fortran reports inconsistency in rank of arguments in interface and contained procedures

dominiq at lps dot ens.fr gcc-bugzilla@gcc.gnu.org
Wed Mar 21 20:16:00 GMT 2018


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

--- Comment #7 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> My version of gfortran gives
>
> gfcx -c a.f90
> a.f90:4:38:
>
>        module subroutine copy_byte_data(data, copy)
>                                      1
> a.f90:12:31:
>
>        subroutine copy_byte_data(data, copy)
>                               2       
> Error: Procedure 'copy_byte_data' defined in interface body at (1) clashes
> with internal procedure defined at (2)
>a.f90:12:36:

It seems your version has a non disclosed patch almost fixing this PR!-)

>        subroutine copy_byte_data(data, copy)
>                                    1
> Error: Shape mismatch in argument 'data' at (1)

It would be nice to skip this error.

> Not sure if this is correct, though.

Note that I have spent some time this afternoon marking any PR with "interface"
in the summary as blocking the meta-bug pr29670.


More information about the Gcc-bugs mailing list