Gfortran ICE with submodules: module procedure interface defined in parent module (bug report 79402)

Stefano Zaghi stefano.zaghi@gmail.com
Tue Feb 7 11:26:00 GMT 2017


Dear gfortran team,

I have just created a bug report 79402,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79402

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 to the bug report
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 Zaghi  Ph.D. Aerospace Engineer

Research Scientist, Dept. of Computational Hydrodynamics at CNR-INSEAN
p: +39 0650299260 | m: +39 3497730036 | e: stefano.zaghi@gmail.com

Member of Fortran-FOSS-Programmers

Codes Showcase
OFF          Open source Finite volumes Fluid dynamics code
Lib_VTK_IO   Fortran library to write and read data conforming the VTK standard
FLAP         Fortran command Line Arguments Parser for poor men
BeFoR64      Base64 encoding/decoding library for FoRtran poor men
FiNeR        Fortran INI ParseR and generator for FoRtran poor men
IR_Precision Fortran (standard 2003) module to develop portable codes
FoBis.py     Fortran Building System for poor men
PreForM.py   Preprocessor for Fortran poor men
MaTiSSe.py   Markdown To Impressive Scientific Slides



More information about the Fortran mailing list