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

* [Bug fortran/94943] [10 Regression] A module does not export allocatable attribute of herein arrays.
  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 ` rguenth at gcc dot gnu.org
  2020-05-05 16:51 ` kargl at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-05-04 11:45 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
   Target Milestone|---                         |10.0
           Priority|P3                          |P4
      Known to work|                            |9.3.1
            Summary|A module does not export    |[10 Regression] A module
                   |allocatable attribute of    |does not export allocatable
                   |herein arrays.              |attribute of herein arrays.

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

* [Bug fortran/94943] [10 Regression] A module does not export allocatable attribute of herein arrays.
  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
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: kargl at gcc dot gnu.org @ 2020-05-05 16:51 UTC (permalink / raw)
  To: gcc-bugs

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

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu.org

--- Comment #1 from kargl at gcc dot gnu.org ---
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.

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

* [Bug fortran/94943] [10 Regression] A module does not export allocatable attribute of herein arrays.
  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
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: artu72 at gmail dot com @ 2020-05-05 18:04 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Andrea Mastellone <artu72 at gmail dot com> ---
(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.

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

* [Bug fortran/94943] [10 Regression] A module does not export allocatable attribute of herein arrays.
  2020-05-04 11:04 [Bug fortran/94943] New: A module does not export allocatable attribute of herein arrays artu72 at gmail dot com
                   ` (2 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: artu72 at gmail dot com @ 2020-05-06  8:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Andrea Mastellone <artu72 at gmail dot com> ---
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.

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

* [Bug fortran/94943] [10 Regression] A module does not export allocatable attribute of herein arrays.
  2020-05-04 11:04 [Bug fortran/94943] New: A module does not export allocatable attribute of herein arrays artu72 at gmail dot com
                   ` (3 preceding siblings ...)
  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
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-05-07 11:56 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.0                        |10.2

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.1 has been released.

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

* [Bug fortran/94943] [10 Regression] A module does not export allocatable attribute of herein arrays.
  2020-05-04 11:04 [Bug fortran/94943] New: A module does not export allocatable attribute of herein arrays artu72 at gmail dot com
                   ` (4 preceding siblings ...)
  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
  6 siblings, 0 replies; 8+ messages in thread
From: artu72 at gmail dot com @ 2020-05-07 13:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Andrea Mastellone <artu72 at gmail dot com> ---
(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.

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

* [Bug fortran/94943] [10 Regression] A module does not export allocatable attribute of herein arrays.
  2020-05-04 11:04 [Bug fortran/94943] New: A module does not export allocatable attribute of herein arrays artu72 at gmail dot com
                   ` (5 preceding siblings ...)
  2020-05-07 13:29 ` artu72 at gmail dot com
@ 2020-05-07 20:18 ` anlauf at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: anlauf at gcc dot gnu.org @ 2020-05-07 20:18 UTC (permalink / raw)
  To: gcc-bugs

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

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #6 from anlauf at gcc dot gnu.org ---
Next time please provide a testcase that works at least with another compiler.

First, I guess there's a typo: FNUM instead of FNAM

Second, FNAM is declared:

  CHARACTER(LEN=24),DIMENSION(NPA)             :: FNAM

There's nothing allocatable here.

I'm closing this as invalid.

^ 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).