[Bug fortran/59276] New: Incorrect error message with modules of different gfortran versions

Joost.VandeVondele at mat dot ethz.ch gcc-bugzilla@gcc.gnu.org
Sun Nov 24 19:15:00 GMT 2013


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

            Bug ID: 59276
           Summary: Incorrect error message with modules of different
                    gfortran versions
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Joost.VandeVondele at mat dot ethz.ch

This 'bug' might lead to some confusion. 

If an older version of gfortran (i.e. 4.8) reads a module generated with 4.9
the error message is:

Fatal Error: File 'm1.mod' opened at (1) is not a GNU Fortran module file

instead of the more useful variant one had with 4.8/4.7

Fatal Error: Wrong module version '10' (expected '9') for file 'm1.mod' opened
at 
(1)

I don't see how this can be fixed other than fixing the error message on the
release branches into '... not a module file compatible with this version of
GNU Fortran'.



More information about the Gcc-bugs mailing list