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

            Bug ID: 96423
           Summary: It is not checked whether module procedures have
                    separate interface bodies.
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: chilikin.k at gmail dot com
  Target Milestone: ---

The following code:

MODULE M
CONTAINS
  MODULE SUBROUTINE S()
  END SUBROUTINE
END MODULE

compiles successfully with gfortran 10.2.0. However, it should not compile, as
S() is a separate module procedure and it should have a separate interface
body.

Compiler configuration:

Target: x86_64-pc-linux-gnu
Configured with: ../gcc-10.2.0/configure --prefix=/opt/gcc-10.2.0
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 10.2.0 (GCC) 

Compilation command:

$ gfortran -c -o test.o test.f90

Reply via email to