[Bug fortran/94943] New: A module does not export allocatable attribute of herein arrays.

2020-05-04 Thread artu72 at gmail dot com
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

[Bug fortran/94943] [10 Regression] A module does not export allocatable attribute of herein arrays.

2020-05-05 Thread artu72 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94943

--- Comment #2 from Andrea Mastellone  ---
(In reply to kargl from comment #1)
> There is very little we can do without a minimum example that shows the
> problem.  What you have attached cannot be compiled by anyone as
> deallocate_vars.f90 contains a dozen or so USE statements and you haven't
> provided those modules.  In addition, we don't do mpif90.  What happens if
> you remove all of the unnecessary compiler options you use and use actually
> use gfortran.

Ok, i will try to reduce the code to minimal part that can reproduce the
problem without using mpif90. I'll send you something asap.

[Bug fortran/94943] [10 Regression] A module does not export allocatable attribute of herein arrays.

2020-05-06 Thread artu72 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94943

--- Comment #3 from Andrea Mastellone  ---
Created attachment 48460
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48460&action=edit
simple test case which reproduces the bug

Here is a simple source code replying the bug. I have attached the original
module, used by the main procedure. Compiling it (by issuing make debug or make
release) produces the error.

[Bug fortran/94943] [10 Regression] A module does not export allocatable attribute of herein arrays.

2020-05-07 Thread artu72 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94943

--- Comment #5 from Andrea Mastellone  ---
(In reply to Jakub Jelinek from comment #4)
> GCC 10.1 has been released.

When it will be available on Fedora 32 I will test it.