public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/94943] New: A module does not export allocatable attribute of herein arrays.
@ 2020-05-04 11:04 artu72 at gmail dot com
  2020-05-04 11:45 ` [Bug fortran/94943] [10 Regression] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: artu72 at gmail dot com @ 2020-05-04 11:04 UTC (permalink / raw)
  To: gcc-bugs

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-05-07 20:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-04 11:04 [Bug fortran/94943] New: A module does not export allocatable attribute of herein arrays artu72 at gmail dot com
2020-05-04 11:45 ` [Bug fortran/94943] [10 Regression] " rguenth at gcc dot gnu.org
2020-05-05 16:51 ` kargl at gcc dot gnu.org
2020-05-05 18:04 ` artu72 at gmail dot com
2020-05-06  8:38 ` artu72 at gmail dot com
2020-05-07 11:56 ` jakub at gcc dot gnu.org
2020-05-07 13:29 ` artu72 at gmail dot com
2020-05-07 20:18 ` anlauf at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).