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

            Bug ID: 94943
           Summary: A module does not export allocatable attribute of
                    herein arrays.
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: artu72 at gmail dot com
  Target Milestone: ---

Created attachment 48438
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48438&action=edit
contains the compiler version, command line, errors, and the module file and
the routine that uses it with .s files.

A module contains several arrays with ALLOCATABLE attribute. When compiling,
the routine that uses the module complains that array is not an allocatable one
neither a pointer. 

Expected behavior (as in 9.3.1 version) : no error reported and compilation
completes.

Current behavior: error reported, as in the attachment.

I attach an archive with following files:

commandline : the command mpif90 arising the error
deallocate_vars.f90 : routine that uses the sel module
deallocate_vars.s (no .i file generated, I include this instead)
error : error issued by the compiler
sel_mod.f90 : module containing the arrays
sel_mod.s 
version : version of gfortran

mpif90 wraps as

 gfortran -I/usr/include/openmpi-x86_64 -pthread -I/usr/lib64/openmpi/lib
-Wl,-rpath -Wl,/usr/lib64/openmpi/lib -Wl,--enable-new-dtags
-L/usr/lib64/openmpi/lib -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh
-lmpi

Reply via email to