[Bug fortran/60780] New: Equivalence statements in nested modules results in fast growing duplicate statements in module files

russelldub at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Apr 7 17:27:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60780

            Bug ID: 60780
           Summary: Equivalence statements in nested modules results in
                    fast growing duplicate statements in module files
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: russelldub at gmail dot com

Created attachment 32558
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32558&action=edit
Code to reproduce issue.

Equivalence statements in equivalence statements results in quickly growing
number of duplicated statements in nested module files.  The attached file
shows the issue.  Compiled with
> gfortran equiv_mod.f90
Resulting module files grow from 3.1 kb to 128 kb.  (This issue is somewhat
mitigated by compressing modules in latest gfortran, but duplicate statements
still exist).  The fortran interface to HDF5 is affected by this.  In code that
uses HDF5 in nested fashion module files can grow to multiple GB in size
resulting in ICE when memory is exhausted.  May be related to pr 38171.

Reproduced in 4.4.7, 4.6.1, 4.8.2 and recent git clone.



More information about the Gcc-bugs mailing list