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

--- Comment #6 from William Clodius <w.clodius at icloud dot com> ---
My version of gfortran, 7.1, doesn’t give the first message, which is correct.
The second message is incorrect. Either the clashing procedures should not be
compared further, or the comparison of the shapes of the arguments should find
that they match.

> On Mar 21, 2018, at 12:59 PM, kargl at gcc dot gnu.org 
> <gcc-bugzi...@gcc.gnu.org> wrote:
> 
> 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.
> 
> -- 
> You are receiving this mail because:
> You reported the bug.

Reply via email to