This is the mail archive of the gcc-bugs@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]

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


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

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu.org

--- Comment #4 from kargl at gcc dot gnu.org ---
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:

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

Not sure if this is correct, though.

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