https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84922
Harald Anlauf <anlauf at gmx dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anlauf at gmx dot de
--- Comment #1 from Harald Anlauf <anlauf at gmx dot de> ---
NAG, Intel and Sunf95 reject the code with a duplicate symbol error.
After removing the 'module' before subroutine and some cleanup, NAG prints:
NAG Fortran Compiler Release 6.1(Tozai) Build 6106
Error: pr84922.f90, line 14: Duplicate subprogram name COPY_BYTE_DATA
detected at SUBROUTINE@COPY_BYTE_DATA
So probably gfortran just produces a misleading error message...