[Bug fortran/79402] New: ICE with submodules: module procedure interface defined in parent module

stefano.zaghi at cnr dot it gcc-bugzilla@gcc.gnu.org
Tue Feb 7 11:23:00 GMT 2017


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

            Bug ID: 79402
           Summary: ICE with submodules: module procedure interface
                    defined in parent module
           Product: gcc
           Version: 6.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: stefano.zaghi at cnr dot it
  Target Milestone: ---

Created attachment 40685
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40685&action=edit
MCVE of ICE with submodule

Dear gfortran team,

I am writing on the behalf of Chris Coutinho who cannot create a bugzilla
account.

GNU gfortran generates and ICE when a submodule implementation of a procedure
inherits its signature from the parent module by means of the "module
procedure" syntax.

In the "gfortran_ice_submodule.f90" file attached there is a minimal example
raising the ICE (Arch Linux, 4.8.13-1-ARCH #1 SMP PREEMPT) with both 6.3.1 and
development trunk 7.0.0 (I have not yet installed 7.0.1 version). If you
comment lines 24-26 and un-comment lines 17-22 the program runs as expected.

Our best regards.

Stefano


More information about the Gcc-bugs mailing list